Skip to content

Commit

Permalink
XMerge branch 'regression-dilshana' of github.com:yigbt/deepFPlearn i…
Browse files Browse the repository at this point in the history
…nto regression-dilshana
  • Loading branch information
dil-shana committed Nov 20, 2024
2 parents a3d5ac6 + 21cc2cd commit 27a3c9b
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 7 deletions.
25 changes: 25 additions & 0 deletions example/dilshana-sweep-trial/train_dilshana.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"py/object": "dfpl.options.Options",
"inputFile": "/home/shanavas/PycharmProjects/deepFPlearn/example/data/herg_10uM_NN_sliced_minus2to2.csv",
"outputDir": "/data/bioinf/projects/data/2024_invitrodb_data/dilshana/home/PyCharm/sweep/trial",
"ecModelDir": "/home/shanavas/PycharmProjects/deepFPlearn/example/models/generic_encoder/",
"type": "smiles",
"fpType": "topological",
"fpSize": 2048,
"encFPSize": 256,
"enableMultiLabel": false,
"verbose": 2,
"trainAC": false,
"trainFNN": true,
"compressFeatures": true,
"kFolds": 1,
"testSize": 0.2,
"optimizer": "Adam",
"batchSize": 128,
"lossFunction": "mse",
"epochs": 5000,
"activationFunction": "tanh",
"fnnType": "REG",
"wabTracking": true
}

6 changes: 3 additions & 3 deletions example/herg10uM_sliced.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"py/object": "dfpl.options.Options",
"inputFile": "example/data/herg_10uM_NN_sliced_minus2to2.csv",
"outputDir": "example/herg_10uM/train/comp_sliced",
"ecModelDir": "example/models/generic_encoder/",
"inputFile": "PycharmProjects/deepFPlearn/example/data/herg_10uM_NN_sliced_minus2to2.csv",
"outputDir": "PycharmProjects/generate_dfpl_regression_data/example/herg_10/train/",
"ecModelDir": "PycharmProjects/deepFPlearn/example/models/generic_encoder/",
"type": "smiles",
"fpType": "topological",
"fpSize": 2048,
Expand Down
26 changes: 26 additions & 0 deletions example/train_dilshana.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"py/object": "dfpl.options.Options",
"inputFile": "PycharmProjects/deepFPlearn/example/data/herg_10uM_NN_sliced_minus2to2.csv",
"outputDir": "/data/bioinf/projects/data/2024_invitrodb_data/dilshana/home/PyCharm/sweep",
"ecModelDir": "Pycharm/example/models/generic_encoder/",
"type": "smiles",
"fpType": "topological",
"fpSize": 2048,
"encFPSize": 256,
"enableMultiLabel": false,
"verbose": 2,
"trainAC": false,
"trainFNN": true,
"compressFeatures": false,
"kFolds": 1,
"testSize": 0.2,
"optimizer": "Adam",
"batchSize": 128,
"lossFunction": "mse",
"epochs": 5000,
"activationFunction": "tanh",
"fnnType": "REG",
"wabTracking": true
}


2 changes: 1 addition & 1 deletion sweep_initial.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ command:
- "source /home/shanavas/miniforge3/bin/activate /home/shanavas/miniforge3/envs/dfpl_env"
- "/home/shanavas/miniforge3/envs/dfpl_env/bin/python"
- ${program}
- "train-good1"
- "train"
- "-f"
- "/home/shanavas/PycharmProjects/deepFPlearn/example/dilshana-sweep-trial/train_dilshana.json"
- ${args}
Expand Down
32 changes: 32 additions & 0 deletions sweep_trial.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
program: dfpl
command:
- ${env}
- "/home/shanavas/miniforge3/envs/dfpl_env/bin/python"
- "-m"
- ${program}
- "train"
- "-f"
- "/home/shanavas/PycharmProjects/deepFPlearn/example/dilshana-sweep-trial/train_dilshana.json"
- ${args}
method: random
metric:
name: val_loss
goal: minimize
parameters:
dropout:
distribution: uniform
min: 0.00001
max: 0.5
l2reg:
distribution: uniform
min: 0.00001
max: 0.1
batchSize:
values: [64, 128, 256, 512]
learningRate:
distribution: uniform
min: 0.00001
max: 0.01
wabTarget:
value: AR

2 changes: 1 addition & 1 deletion wandb/debug-internal.log
2 changes: 1 addition & 1 deletion wandb/debug.log
2 changes: 1 addition & 1 deletion wandb/latest-run
19 changes: 19 additions & 0 deletions wandb_new.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash -l
# Standard output and error:
#SBATCH --chdir=/home/shanavas # Set the working directory
#SBATCH --output=/home/%u/%x-%j.out # Standard output log
#SBATCH --error=/home/%u/%x-%j.err # Standard error log
#SBATCH --mem-per-cpu=2G # Memory per CPU
#SBATCH -G 1 # Request 1 GPU if needed, change as necessary
#SBATCH --time=0-12:00:00 # Maximum runtime (2 hours)


module purge
#module load cuda/12.0

source ~/miniforge3/etc/profile.d/conda.sh
conda activate dfpl_env
# Run the program:
#srun wandb agent Pycharm/deepFPlearn/81yqknwm &> dfpl_run.log

srun wandb agent --count 50 dilshana-ufz/deepFPlearn/o5rkx4co &> dfpl_run.log

0 comments on commit 27a3c9b

Please sign in to comment.