File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
chebai/preprocessing/datasets Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def download(self) -> None:
6868 def setup_processed (self ) -> None :
6969 """Processes and splits the dataset."""
7070 print ("Create splits" )
71- data = list ( self ._load_data_from_file (os .path .join (self .raw_dir , f"tox21.csv" ) ))
71+ data = self ._load_data_from_file (os .path .join (self .raw_dir , f"tox21.csv" ))
7272 groups = np .array ([d ["group" ] for d in data ])
7373 if not all (g is None for g in groups ):
7474 split_size = int (len (set (groups )) * self .train_split )
@@ -145,10 +145,7 @@ def _load_data_from_file(self, input_file_path: str) -> List[Dict]:
145145 labels = [
146146 bool (int (l )) if l else None for l in (row [k ] for k in self .HEADERS )
147147 ]
148- group = row .get ("group" , None )
149- yield dict (
150- features = smiles , labels = labels , ident = row ["mol_id" ], group = group
151- )
148+ yield dict (features = smiles , labels = labels , ident = row ["mol_id" ])
152149
153150
154151class Tox21Challenge (XYBaseDataModule ):
You can’t perform that action at this time.
0 commit comments