Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,31 @@ For a more detailed account of each column in the dataset see the data dictionar

## Running the Application (Windows)

### Docker Image
### Anaconda

The latest version of the Random Telecom Payments app can be found as a docker image on dockerhub here:
Create a local conda environment for the Random Telecom Payments app using [anaconda](https://www.anaconda.com/):

```
conda create --name RandomTelecomPayments python=3.12 --yes
conda activate RandomTelecomPayments
pip install -r requirements.txt
```

Execute the Random Telecom Payments app to generate data for 2000 users using the following command and the local conda environment:

```
python generator\\main.py --n_users 1000 --use_random_seed 1 --n_itr 2
```

View the generated Random Telecom Payments data using the following command:

```
type data\\RandomTelecomPayments.csv | more
```

### Docker

The latest version of the Random Telecom Payments app can be found as a [docker](https://www.docker.com/) image on dockerhub here:

* https://hub.docker.com/repository/docker/oislen/randomtelecompayments/general

Expand Down
2 changes: 1 addition & 1 deletion conda/RandomTelecomPayments.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ call conda env list
call conda deactivate
call conda env remove --name RandomTelecomPayments --yes
call conda env list
call conda create --name RandomTelecomPayments python=3 --yes
call conda create --name RandomTelecomPayments python=3.12 --yes
call conda activate RandomTelecomPayments
call conda list

Expand Down
2 changes: 1 addition & 1 deletion exeDocker.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ call docker build --no-cache -t %DOCKER_IMAGE% .
SET UBUNTU_DIR=/home/ubuntu
call docker run --name %DOCKER_CONTAINER_NAME% --memory 7GB --volume E:\GitHub\RandomTelecomPayments\data:/home/ubuntu/RandomTelecomPayments/data --rm %DOCKER_IMAGE% --n_users 100 --use_random_seed 1 --n_itr 1
:: call docker run --name %DOCKER_CONTAINER_NAME%w --memory 7GB --volume E:\GitHub\RandomTelecomPayments\data:/home/ubuntu/RandomTelecomPayments/data --rm %DOCKER_IMAGE% --n_users 13000 --use_random_seed 1 --n_itr 2
:: call docker run -it --entrypoint sh --name %DOCKER_CONTAINER_NAME% --memory 7GB --volume E:\GitHub\RandomTelecomPayments\data:/home/ubuntu/RandomTelecomPayments/data --rm %DOCKER_IMAGE%
:: call docker run -it --entrypoint bash --name %DOCKER_CONTAINER_NAME% --memory 7GB --volume E:\GitHub\RandomTelecomPayments\data:/home/ubuntu/RandomTelecomPayments/data --rm %DOCKER_IMAGE%

:: useful docker commands
:: docker images
Expand Down
5 changes: 3 additions & 2 deletions generator/cons.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os
import platform
import re
import sys
import datetime

fpath_repo_dir = 'E:\\GitHub\\RandomTelecomPayments' if platform.system() == 'Windows' else "/home/runner/work/RandomTelecomPayments/RandomTelecomPayments" if "GITHUB_ACTIONS_UNITTEST_FLAG" in os.environ else '/home/ubuntu/RandomTelecomPayments'
root_dir_re_match = re.findall(string=os.getcwd(), pattern="^.+RandomTelecomPayments")
fpath_repo_dir = root_dir_re_match[0] if len(root_dir_re_match) > 0 else os.path.join(".", "RandomTelecomPayments")
sys.path.append(fpath_repo_dir)
# set sub directories
subdir_data = os.path.join(fpath_repo_dir, 'data')
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ scikit-learn==1.6.1
pyarrow==18.1.0
fastparquet==2024.11.0
beartype==0.19.0
unidecode==1.3.8
unidecode==1.3.8
boto3==1.36.12