File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
chebai/preprocessing/datasets Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments