You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add contining training from specific dir[load_model_dir]
* Update model loading to handle different output dimensions in retrain(trasnfer learning)
* update docs
* update unimol format Uni-Mol
* update url dptech-core to deepmodeling
* update version setup
* update unimol v2 docs
* update split methods
* update split method: group split; kfold=1 for all training
* merge main
* update train docs
* Fix: unimol_tools using unimolv2 sometimes hang at multiprocesses
* update version 0.1.2
* update log for generate conformers
Copy file name to clipboardExpand all lines: unimol_tools/unimol_tools/train.py
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -72,9 +72,23 @@ def __init__(self,
72
72
73
73
- multilabel_regression: mae, mse, r2.
74
74
75
-
:param split: str, default='random', split method of training dataset. currently support: random, scaffold, group, stratified.
75
+
:param split: str, default='random', split method of training dataset. currently support: random, scaffold, group, stratified, select.
76
+
77
+
- random: random split.
78
+
79
+
- scaffold: split by scaffold.
80
+
81
+
- group: split by group. `split_group_col` should be specified.
82
+
83
+
- stratified: stratified split. `split_group_col` should be specified.
84
+
85
+
- select: use `split_group_col` to manually select the split group. Column values of `split_group_col` should be range from 0 to kfold-1 to indicate the split group.
86
+
76
87
:param split_group_col: str, default='scaffold', column name of group split.
77
88
:param kfold: int, default=5, number of folds for k-fold cross validation.
89
+
90
+
- 1: no split. all data will be used for training.
91
+
78
92
:param save_path: str, default='./exp', path to save training results.
79
93
:param remove_hs: bool, default=False, whether to remove hydrogens from molecules.
80
94
:param smiles_col: str, default='SMILES', column name of SMILES.
0 commit comments