CryptoFraudDetection / main

Main repository for the project.
MIT License
0 stars 0 forks source link

main

Main repository for the project.

Instructions

  1. Clone the repo 📂
  2. Install the project using the make dev-install command 🛠️
  3. Copy the .env-example file to .env and fill in the necessary environment variables 🔑
  4. Load the environment variables using the source .env command 🔄
  5. You're ready to start working ☕️

Structure

├── .github/workflows         <- Github actions workflows.
├── data       
│   ├── processed             <- The final, canonical data sets for modeling.
│   └── raw                   <- The original, immutable data dump.
│       
├── docs                      <- Documentation for the project.
├── models                    <- Modelcheckpoints, model predictions, metrics, and model summaries.
├── notebooks                 <- Jupyter notebooks or Quarto Markdown Notebooks. 
│                                Naming convention is a number (for ordering) and a short `-` 
│                                delimited description, e.g. `00-example.qmd`.
│        
├── reports                   <- Generated analysis as HTML, PDF, LaTeX, diagrams, etc.
├── scripts                   <- Scripts for data processing, model training, etc.
├── src/CryptoFraudDetection  <- Source code package for use in this project.
├── tests                     <- Unit tests for the project.
├── .gitignore                <- Files to be ignored by git.
├── compose.yml               <- Docker compose file for running the image
├── Dockerfile                <- Dockerfile for the Docker image.
├── LICENSE                   <- MIT License.
├── Makefile                  <- Makefile with commands like `make install` or `make test`.
├── pyproject.toml            <- Package build configuration.
└── README.md                 <- The top-level README for this project.

Train models with Slurm

Dummy Model Example

  1. Clone the repo with a Personal Access Token (PAT) (use a classic token!):
    git clone https://USER:TOKEN@github.com/CryptoFraudDetection/main.git

    (Replace USER with your GitHub username and TOKEN with your PAT)

    cd main
  2. Create a virtual environment:
    python3 -m venv venv
    source venv/bin/activate
  3. Install the project:
    make dev-install
  4. Login to wandb:
    wandb login

    (Follow the instructions on the terminal)

  5. Initialize the sweep on your laptop or on Slurm:
    • Laptop:
      python scripts/dummy.py
    • Slurm:
      sbatch scripts/dummy.sh
  6. Add agents to the sweep:
    1. Get the sweep id from the log file from the previous step:
      cat logs/dummy*NNNN*.log

      (Replace NNNN with the batch number)

    2. Add agents to the sweep:
      sbatch scripts/dummy.sh nod0ndel/dummy-model-sweep/_________

      (Replace _________ with the sweep id)