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
The input files should contain a list of line-separated SMILES strings. This generates a CSV file that contains the
84
-
one row for each SMILES string and one column for each class.
85
-
The `classes_path` is the path to the dataset's `raw/classes.txt` file that contains the relationship between model output and ChEBI-IDs.
83
+
84
+
***`--checkpoint_path`**: Path to the Lightning checkpoint file (must end with `.ckpt`).
85
+
86
+
***`--smiles_file_path`**: Path to a text file containing one SMILES string per line.
87
+
88
+
***`--save_to`***(optional)*: Predictions will be saved to the path as CSV file. The CSV will contain one row per SMILES string and one column per predicted class. Default path will be the current working directory with file name as `predictions.csv`.
89
+
90
+
> **Note**: Newly created checkpoints after PR #148 must be used for this prediction pipeline. The list of ChEBI classes (classification labels) used during training is stored in new checkpoints, which are required.
86
91
87
92
## Evaluation
88
93
@@ -96,7 +101,7 @@ An example notebook is provided at `tutorials/eval_model_basic.ipynb`.
96
101
Alternatively, you can evaluate the model via the CLI:
> **Note**: It is recommended to use `devices=1` and `num_nodes=1` during testing; multi-device settings use a `DistributedSampler`, which may replicate some samples to maintain equal batch sizes, so using a single device ensures that each sample or batch is evaluated exactly once.
0 commit comments