Skip to content

Commit

Permalink
ran more test training.
Browse files Browse the repository at this point in the history
  • Loading branch information
PatReis committed Dec 12, 2023
1 parent 5e45779 commit 59f5eae
Show file tree
Hide file tree
Showing 17 changed files with 1,143 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ You can find a [table](training/results/README.md) of common benchmark datasets
Some known issues to be aware of, if using and making new models or layers with `kgcnn`.
* Jagged or nested Tensors loading into models for PyTorch backend is not working.
* Dataloader for Jax is not yet implemented.
* ForceModel does not support all tensor types and does not have Scaler layer yet.
* BatchNormalization layer dos not support padding yet.


<a name="citing"></a>
# Citing
Expand Down
67 changes: 67 additions & 0 deletions training/hyper/hyper_freesolv.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,4 +967,71 @@
"kgcnn_version": "4.0.0"
}
},
"RGCN": {
"model": {
"class_name": "make_model",
"module_name": "kgcnn.literature.RGCN",
"config": {
"name": "RGCN",
"inputs": [
{"shape": [None, 41], "name": "node_attributes", "dtype": "float32"},
{"shape": [None, 1], "name": "edge_weights", "dtype": "float32"},
{"shape": [None], "name": "edge_number", "dtype": "int64"},
{"shape": [None, 2], "name": "edge_indices", "dtype": "int64"},
{"shape": (), "name": "total_nodes", "dtype": "int64"},
{"shape": (), "name": "total_edges", "dtype": "int64"},
],
"input_embedding": None,
"input_node_embedding": {"input_dim": 95, "output_dim": 64},
"dense_relation_kwargs": {"units": 64, "num_relations": 20},
"dense_kwargs": {"units": 64},
"activation_kwargs": {"activation": "swish"},
"depth": 5, "verbose": 10,
"output_embedding": "graph",
"output_mlp": {"use_bias": [True, True, False], "units": [140, 70, 1],
"activation": ["relu", "relu", "linear"]},
}
},
"training": {
"fit": {
"batch_size": 32,
"epochs": 800,
"validation_freq": 10,
"verbose": 2,
"callbacks": [
{
"class_name": "kgcnn>LinearLearningRateScheduler", "config": {
"learning_rate_start": 1e-03, "learning_rate_stop": 5e-05, "epo_min": 250, "epo": 800,
"verbose": 0}
}
]
},
"compile": {
"optimizer": {"class_name": "Adam", "config": {"learning_rate": 1e-03}},
"loss": "mean_absolute_error"
},
"cross_validation": {"class_name": "KFold",
"config": {"n_splits": 5, "random_state": 42, "shuffle": True}},
"scaler": {"class_name": "StandardLabelScaler",
"config": {"with_std": True, "with_mean": True, "copy": True}},
},
"data": {
"dataset": {
"class_name": "FreeSolvDataset",
"module_name": "kgcnn.data.datasets.FreeSolvDataset",
"config": {},
"methods": [
{"set_attributes": {}},
{"map_list": {"method": "normalize_edge_weights_sym"}},
{"map_list": {"method": "count_nodes_and_edges"}}
]
},
"data_unit": "mol/L"
},
"info": {
"postfix": "",
"postfix_file": "",
"kgcnn_version": "4.0.0"
}
},
}
155 changes: 155 additions & 0 deletions training/results/ESOLDataset/MAT/MAT_ESOLDataset_score.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
OS: posix_linux
backend: tensorflow
cuda_available: 'True'
data_unit: mol/L
date_time: '2023-12-12 16:09:31'
device_id: '[LogicalDevice(name=''/device:CPU:0'', device_type=''CPU''), LogicalDevice(name=''/device:GPU:0'',
device_type=''GPU'')]'
device_memory: '[]'
device_name: '[{}, {''compute_capability'': (7, 0), ''device_name'': ''Tesla V100-SXM2-32GB''}]'
epochs:
- 400
- 400
- 400
- 400
- 400
execute_folds: null
kgcnn_version: 4.0.0
learning_rate:
- 1.1224999980186112e-05
- 1.1224999980186112e-05
- 1.1224999980186112e-05
- 1.1224999980186112e-05
- 1.1224999980186112e-05
loss:
- 0.1823684573173523
- 0.11162513494491577
- 0.117088682949543
- 0.1463896781206131
- 0.1547081023454666
max_learning_rate:
- 0.0005000000237487257
- 0.0005000000237487257
- 0.0005000000237487257
- 0.0005000000237487257
- 0.0005000000237487257
max_loss:
- 1.0886505842208862
- 1.6228336095809937
- 1.0778088569641113
- 0.8051376342773438
- 1.2409515380859375
max_scaled_mean_absolute_error:
- 2.277179718017578
- 3.481034517288208
- 2.323612689971924
- 1.6824119091033936
- 2.6527938842773438
max_scaled_root_mean_squared_error:
- 3.2912211418151855
- 5.728435039520264
- 3.0965003967285156
- 2.223159074783325
- 4.3681769371032715
max_val_loss:
- 0.5326167345046997
- 0.43124744296073914
- 0.46407854557037354
- 0.5170496702194214
- 0.5319600105285645
max_val_scaled_mean_absolute_error:
- 1.1692899465560913
- 0.9186814427375793
- 0.9716984033584595
- 1.2085145711898804
- 1.2234150171279907
max_val_scaled_root_mean_squared_error:
- 1.5084871053695679
- 1.2712254524230957
- 1.3088979721069336
- 1.5181866884231567
- 1.5178320407867432
min_learning_rate:
- 1.1224999980186112e-05
- 1.1224999980186112e-05
- 1.1224999980186112e-05
- 1.1224999980186112e-05
- 1.1224999980186112e-05
min_loss:
- 0.17882384359836578
- 0.11162513494491577
- 0.117088682949543
- 0.14148730039596558
- 0.14902184903621674
min_scaled_mean_absolute_error:
- 0.37281858921051025
- 0.23928456008434296
- 0.24925093352794647
- 0.2964370548725128
- 0.31820112466812134
min_scaled_root_mean_squared_error:
- 0.5274035930633545
- 0.3411021828651428
- 0.36265140771865845
- 0.49083852767944336
- 0.4817076027393341
min_val_loss:
- 0.26048049330711365
- 0.2250904142856598
- 0.21756266057491302
- 0.23160162568092346
- 0.2589470446109772
min_val_scaled_mean_absolute_error:
- 0.552675724029541
- 0.49976062774658203
- 0.46578550338745117
- 0.5111464262008667
- 0.48821592330932617
min_val_scaled_root_mean_squared_error:
- 0.808870255947113
- 0.69239342212677
- 0.6813971996307373
- 0.7377129197120667
- 0.6422559022903442
model_class: make_model
model_name: MAT
model_version: '2023-12-08'
multi_target_indices: null
number_histories: 5
scaled_mean_absolute_error:
- 0.3809373378753662
- 0.23928456008434296
- 0.24925093352794647
- 0.30862900614738464
- 0.3310590386390686
scaled_root_mean_squared_error:
- 0.5358061790466309
- 0.3411021828651428
- 0.3654007017612457
- 0.5014261603355408
- 0.49988213181495667
seed: 42
time_list:
- '0:08:54.753444'
- '0:10:04.791423'
- '0:10:22.784478'
- '0:09:38.777824'
- '0:10:10.089874'
val_loss:
- 0.27381524443626404
- 0.22557413578033447
- 0.2461419701576233
- 0.2324575036764145
- 0.2589470446109772
val_scaled_mean_absolute_error:
- 0.5587965250015259
- 0.5020534992218018
- 0.4689616858959198
- 0.5122407674789429
- 0.48992717266082764
val_scaled_root_mean_squared_error:
- 0.8288314938545227
- 0.7002940773963928
- 0.6813971996307373
- 0.7415391206741333
- 0.6446946263313293
1 change: 1 addition & 0 deletions training/results/ESOLDataset/MAT/MAT_hyper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"model": {"class_name": "make_model", "module_name": "kgcnn.literature.MAT", "config": {"name": "MAT", "inputs": [{"shape": [null], "name": "node_number", "dtype": "int64"}, {"shape": [null, 3], "name": "node_coordinates", "dtype": "float64"}, {"shape": [null, null, 11], "name": "adjacency_matrix", "dtype": "float64"}, {"shape": [null], "name": "node_mask", "dtype": "bool"}, {"shape": [null, null], "name": "adjacency_mask", "dtype": "bool"}], "input_embedding": null, "input_node_embedding": {"input_dim": 95, "output_dim": 64}, "input_edge_embedding": null, "distance_matrix_kwargs": {"trafo": "exp"}, "attention_kwargs": {"units": 8, "lambda_attention": 0.3, "lambda_distance": 0.3, "lambda_adjacency": null, "add_identity": false, "dropout": 0.1}, "feed_forward_kwargs": {"units": [32, 32, 32], "activation": ["relu", "relu", "linear"]}, "embedding_units": 32, "depth": 5, "heads": 8, "merge_heads": "concat", "verbose": 10, "pooling_kwargs": {"pooling_method": "sum"}, "output_embedding": "graph", "output_to_tensor": true, "output_mlp": {"use_bias": [true, true, true], "units": [32, 16, 1], "activation": ["relu", "relu", "linear"]}}}, "training": {"fit": {"batch_size": 32, "epochs": 400, "validation_freq": 10, "verbose": 2, "callbacks": [{"class_name": "kgcnn>LinearLearningRateScheduler", "config": {"learning_rate_start": 0.0005, "learning_rate_stop": 1e-05, "epo_min": 0, "epo": 400, "verbose": 0}}]}, "compile": {"optimizer": {"class_name": "Adam", "config": {"learning_rate": 0.0005}}, "loss": "mean_absolute_error"}, "cross_validation": {"class_name": "KFold", "config": {"n_splits": 5, "random_state": 42, "shuffle": true}}, "scaler": {"class_name": "StandardLabelScaler", "config": {"with_std": true, "with_mean": true, "copy": true}}}, "data": {"data_unit": "mol/L"}, "info": {"postfix": "", "postfix_file": "", "kgcnn_version": "4.0.0"}, "dataset": {"class_name": "ESOLDataset", "module_name": "kgcnn.data.datasets.ESOLDataset", "config": {}, "methods": [{"set_attributes": {}}, {"map_list": {"method": "set_edge_weights_uniform"}}, {"map_list": {"method": "make_dense_adjacency_matrix"}}, {"map_list": {"method": "make_mask", "target_property": "node_number", "mask_name": "node_mask", "rank": 1}}, {"map_list": {"method": "make_mask", "target_property": "adjacency_matrix", "mask_name": "adjacency_mask", "rank": 2}}]}}
155 changes: 155 additions & 0 deletions training/results/ESOLDataset/MEGAN/MEGAN_ESOLDataset_score.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
OS: posix_linux
backend: tensorflow
cuda_available: 'True'
data_unit: mol/L
date_time: '2023-12-12 16:22:43'
device_id: '[LogicalDevice(name=''/device:CPU:0'', device_type=''CPU''), LogicalDevice(name=''/device:GPU:0'',
device_type=''GPU'')]'
device_memory: '[]'
device_name: '[{}, {''compute_capability'': (7, 0), ''device_name'': ''Tesla V100-SXM2-32GB''}]'
epochs:
- 400
- 400
- 400
- 400
- 400
execute_folds: null
kgcnn_version: 4.0.0
learning_rate:
- 1.495000014983816e-05
- 1.495000014983816e-05
- 1.495000014983816e-05
- 1.495000014983816e-05
- 1.495000014983816e-05
loss:
- 0.012737338431179523
- 0.016177868470549583
- 0.01588943973183632
- 0.015854932367801666
- 0.017631076276302338
max_learning_rate:
- 0.0010000000474974513
- 0.0010000000474974513
- 0.0010000000474974513
- 0.0010000000474974513
- 0.0010000000474974513
max_loss:
- 0.8928325176239014
- 0.9035506844520569
- 0.9426555037498474
- 0.9646823406219482
- 0.9401552677154541
max_scaled_mean_absolute_error:
- 1.592093825340271
- 1.640486717224121
- 1.6669679880142212
- 1.6537789106369019
- 1.6780848503112793
max_scaled_root_mean_squared_error:
- 1.9969196319580078
- 2.0298845767974854
- 2.0808403491973877
- 2.087115526199341
- 2.094691038131714
max_val_loss:
- 0.2655687928199768
- 0.2756832242012024
- 0.19013521075248718
- 0.2669769525527954
- 0.2300022840499878
max_val_scaled_mean_absolute_error:
- 0.8123629689216614
- 0.8715759515762329
- 0.6903858184814453
- 0.8620703816413879
- 0.7979723215103149
max_val_scaled_root_mean_squared_error:
- 1.0593111515045166
- 1.1057027578353882
- 0.8993297815322876
- 1.0764745473861694
- 0.9871435761451721
min_learning_rate:
- 1.495000014983816e-05
- 1.495000014983816e-05
- 1.495000014983816e-05
- 1.495000014983816e-05
- 1.495000014983816e-05
min_loss:
- 0.012313216924667358
- 0.014417091384530067
- 0.014880253002047539
- 0.014602194540202618
- 0.015980873256921768
min_scaled_mean_absolute_error:
- 0.17587512731552124
- 0.19850468635559082
- 0.19883838295936584
- 0.19438938796520233
- 0.20582321286201477
min_scaled_root_mean_squared_error:
- 0.23621191084384918
- 0.2608959972858429
- 0.2658199369907379
- 0.2571140229701996
- 0.27140986919403076
min_val_loss:
- 0.08287464827299118
- 0.07449951767921448
- 0.07782188057899475
- 0.08056506514549255
- 0.074025958776474
min_val_scaled_mean_absolute_error:
- 0.42134010791778564
- 0.3979828357696533
- 0.4063383638858795
- 0.43885287642478943
- 0.41615623235702515
min_val_scaled_root_mean_squared_error:
- 0.5864166617393494
- 0.5484012365341187
- 0.5935489535331726
- 0.6044678688049316
- 0.5662087202072144
model_class: make_model
model_name: MEGAN
model_version: '2023-12-08'
multi_target_indices: null
number_histories: 5
scaled_mean_absolute_error:
- 0.1828487664461136
- 0.21012285351753235
- 0.2085757553577423
- 0.20281898975372314
- 0.21437768638134003
scaled_root_mean_squared_error:
- 0.23880794644355774
- 0.27552926540374756
- 0.2747701108455658
- 0.26911863684654236
- 0.28547221422195435
seed: 42
time_list:
- '0:02:29.889829'
- '0:02:28.520036'
- '0:02:28.566370'
- '0:02:27.798780'
- '0:02:30.385086'
val_loss:
- 0.09904459118843079
- 0.08651261031627655
- 0.07839252054691315
- 0.0901709496974945
- 0.07473307847976685
val_scaled_mean_absolute_error:
- 0.45372921228408813
- 0.4131104350090027
- 0.4063383638858795
- 0.4510899484157562
- 0.41615623235702515
val_scaled_root_mean_squared_error:
- 0.636353611946106
- 0.5916258096694946
- 0.5940137505531311
- 0.6353021264076233
- 0.5735164284706116
Loading

0 comments on commit 59f5eae

Please sign in to comment.