Skip to content

Commit 06ab981

Browse files
committed
minor changes
1 parent 4db76ce commit 06ab981

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

chebai/preprocessing/datasets/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def _name(self) -> str:
155155
def _filter_labels(self, row: dict) -> dict:
156156
"""
157157
Filter labels based on `label_filter`.
158+
This method selects specific labels from the `labels` list within the row dictionary
159+
according to the index or indices provided by the `label_filter` attribute of the class.
158160
159161
Args:
160162
row (dict): A dictionary containing the row data.

chebai/preprocessing/datasets/chebi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ def processed_dir_main(self) -> str:
754754
"processed",
755755
)
756756

757-
def extract_class_hierarchy(self, chebi_path: str) -> nx.DiGraph:
757+
def _extract_class_hierarchy(self, chebi_path: str) -> nx.DiGraph:
758758
"""
759759
Extracts a subset of ChEBI based on subclasses of the top class ID.
760760

0 commit comments

Comments
 (0)