| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Download MovieLens 20M Data
wget --output-document=./ml-20m.zip https://files.grouplens.org/datasets/movielens/ml-20m.zipOnce the download is complete, extract the dataset
unzip ml-20m.zipInstall Python: Make sure Python is installed on your system. If not, you can download and install Python from the official Python website: https://www.python.org/downloads/
Create a virtual environment:
python -m venv myenvActivate the virtual environment
For Windows CMD Users
.\myenv\Scripts\Activate.batFor Windows Powershell Users
.\myenv\Scripts\Activate.ps1For macOS/Linux Users
source myenv/bin/activateInstall the dependencies
pip install -r requirements.txtAdd wandb API key
Sign in to https://wandb.ai and get your API key.
Create a file secrets.json in the root directory and put your wandb API key.
{
"WANDB_API_KEY": "YOUR_API_KEY"
}python train.py --data_path DATA_PATH [--emb_size EMB_SIZE] [--random_seed RANDOM_SEED]
[--batch_size BATCH_SIZE] [--epochs EPOCHS] [--learning_rate LEARNING_RATE]
[--weight_decay WEIGHT_DECAY] [--step_size STEP_SIZE] [--gamma GAMMA]
[--patience PATIENCE] [--model_name MODEL_NAME] [--metrics_csv_name METRICS_CSV_NAME]
[--silent] [--log_wandb]python test.py --data_path DATA_PATH --model_path MODEL_PATH [--batch_size BATCH_SIZE] [--random_seed RANDOM_SEED]python inference.py --data_path DATA_PATH --model_path MODEL_PATH --user_id USER_ID [--n_items N_ITEMS]python plot.py --metrics_csv_path METRICS_CSV_PATH [--patience PATIENCE] [--file_name FILE_NAME]| Back | FazBrowse Home | New Git URL |