Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoMaillo authored Jul 28, 2023
1 parent a6518fa commit 069f1fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ python -m torch.distributed.launch finetune_updated.py --data_path "neurips_trai
```
Computationally, using one NVIDIA V100 GPU it takes approximately 8 hours just to finish one fold with the original *NeurIPS* dataset. For this reason, we highly recommend executing each fold in parallel for computational optimization.

In case of training with focal loss, this is the command:
```
python -m torch.distributed.launch finetune_focalLoss.py --data_path "neurips_train.h5ad" --model_path "panglao_pretrain.pth"
```
It is a specialized loss function designed for addressing class imbalance in classification tasks, achieved by adding alpha and gamma parameters to the standard cross-entropy loss.

### 4.2-Prediction
The best model, based on the accuracy, obtained in the training step, is used for prediction. Run the following the command:
```
Expand Down

0 comments on commit 069f1fe

Please sign in to comment.