We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40af1bc commit c5339acCopy full SHA for c5339ac
chebai/preprocessing/datasets/chebi.py
@@ -146,6 +146,12 @@ def __init__(
146
int(aug_smiles_variations) > 0
147
), "Number of variations must be greater than 0"
148
aug_smiles_variations = int(aug_smiles_variations)
149
+
150
+ if not kwargs.get("splits_file_path", None):
151
+ raise ValueError(
152
+ "When using SMILES augmentation, a splits_file_path must be provided to ensure consistent splits."
153
+ )
154
155
reader_kwargs = kwargs.get("reader_kwargs", {})
156
reader_kwargs["canonicalize_smiles"] = False
157
kwargs["reader_kwargs"] = reader_kwargs
0 commit comments