Skip to content

Commit 86044af

Browse files
committed
set subset before using it
1 parent 182a3b1 commit 86044af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chebai/preprocessing/datasets/chebi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def __init__(
149149
):
150150
# predict only single class (given as id of one of the classes present in the raw data set)
151151
self.single_class = single_class
152+
self.subset = subset
153+
152154
super(_ChEBIDataExtractor, self).__init__(**kwargs)
153155
# use different version of chebi for training and validation (if not None)
154156
# (still uses self.chebi_version for test set)
@@ -164,8 +166,6 @@ def __init__(
164166
**_init_kwargs,
165167
)
166168

167-
self.subset = subset
168-
169169
# ------------------------------ Phase: Prepare data -----------------------------------
170170
def _perform_data_preparation(self, *args: Any, **kwargs: Any) -> None:
171171
"""

0 commit comments

Comments
 (0)