Skip to content

Commit 2c7b499

Browse files
committed
remove target classes fp as now its stored in new checkpoints
1 parent b3a758c commit 2c7b499

4 files changed

Lines changed: 1 addition & 11 deletions

File tree

chebifier/ensemble/base_ensemble.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ def predict_smiles_list(
271271
"resgated_0ps1g189": {
272272
"type": "resgated",
273273
"ckpt_path": "data/0ps1g189/epoch=122.ckpt",
274-
"target_labels_path": "data/chebi_v241/ChEBI50/processed/classes.txt",
275274
"molecular_properties": [
276275
"chebai_graph.preprocessing.properties.AtomType",
277276
"chebai_graph.preprocessing.properties.NumAtomBonds",
@@ -289,7 +288,6 @@ def predict_smiles_list(
289288
"electra_14ko0zcf": {
290289
"type": "electra",
291290
"ckpt_path": "data/14ko0zcf/epoch=193.ckpt",
292-
"target_labels_path": "data/chebi_v241/ChEBI50/processed/classes.txt",
293291
# "classwise_weights_path": "../python-chebai/metrics_electra_14ko0zcf_80-10-10.json",
294292
},
295293
}

chebifier/hugging_face.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def download_model_files(
2525
model_config (Dict[str, str | Dict[str, str]]): A dictionary containing:
2626
- 'repo_id' (str): The Hugging Face repository ID (e.g., 'username/modelname').
2727
- 'subfolder' (str): The subfolder within the repo where the files are located.
28-
- 'files' (Dict[str, str]): A mapping from file type (e.g., 'ckpt_path', 'target_labels_path') to
28+
- 'files' (Dict[str, str]): A mapping from file type (e.g., 'ckpt_path') to
2929
actual file names (e.g., 'electra.ckpt', 'classes.txt').
3030
3131
Returns:

chebifier/model_registry.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,41 @@ electra_chebi50-3star_v244:
44
repo_id: chebai/electra_chebi50-3star_v244
55
files:
66
ckpt_path: electra_chebi50-3star_v244_x2mngani_epoch=180.ckpt
7-
target_labels_path: classes.txt
87
classwise_weights_path: electra_chebi50-3star_v244_x2mngani_epoch=180_trust_3star.json
98
gat_chebi50_v244:
109
type: gat
1110
hugging_face:
1211
repo_id: chebai/gat_chebi50_v244
1312
files:
1413
ckpt_path: gat_chebi50_v244_0nfi19qt_epoch=198.ckpt
15-
target_labels_path: classes.txt
1614
classwise_weights_path: gat_chebi50_v244_0nfi19qt_epoch=198_trust_3star.json
1715
gat-aug_chebi50_v244:
1816
type: gat
1917
hugging_face:
2018
repo_id: chebai/gat-aug_chebi50_v244
2119
files:
2220
ckpt_path: gat-aug_chebi50_v244_8fky8tru_epoch=192.ckpt
23-
target_labels_path: classes.txt
2421
classwise_weights_path: gat-aug_chebi50_v244_8fky8tru_epoch=192_trust_3star.json
2522
resgated-aug_chebi50-3star_v244:
2623
type: resgated
2724
hugging_face:
2825
repo_id: chebai/resgated-aug_chebi50-3star_v244
2926
files:
3027
ckpt_path: resgated-aug_chebi50-3star_v244_w0rhmajx_epoch=190.ckpt
31-
target_labels_path: classes.txt
3228
classwise_weights_path: resgated-aug_chebi50-3star_v244_w0rhmajx_epoch=190_trust_3star.json
3329
electra_chebi50_v241:
3430
type: electra
3531
hugging_face:
3632
repo_id: chebai/electra_chebi50_v241
3733
files:
3834
ckpt_path: 14ko0zcf_epoch=193.ckpt
39-
target_labels_path: classes.txt
4035
classwise_weights_path: metrics_electra_14ko0zcf_80-10-10_short.json
4136
resgated_chebi50_v241:
4237
type: resgated
4338
hugging_face:
4439
repo_id: chebai/resgated_gcn_chebi50_v241
4540
files:
4641
ckpt_path: 0ps1g189_epoch=122.ckpt
47-
target_labels_path: classes.txt
4842
classwise_weights_path: metrics_0ps1g189_80-10-10_short.json
4943
c3p_with_weights:
5044
type: c3p

configs/example_config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ chemlog_peptides:
55
my_resgated:
66
type: resgated
77
ckpt_path: my_resgated.ckpt # checkpoint trained with chebai
8-
target_labels_path: ../python-chebai/data/chebi_v244/ChEBI50/processed/classes.txt # from the chebai dataset
98
molecular_properties: # list of properties used during training
109
- chebai_graph.preprocessing.properties.AtomType
1110
- chebai_graph.preprocessing.properties.NumAtomBonds
@@ -22,5 +21,4 @@ my_resgated:
2221
my_electra:
2322
type: electra
2423
ckpt_path: my_electra.ckpt
25-
target_labels_path: ../python-chebai/data/chebi_v244/ChEBI50/processed/classes.txt
2624
#classwise_weights_path: my_electra_metrics.json # can be calculated with chebai.results.generate_class_properties

0 commit comments

Comments
 (0)