File tree Expand file tree Collapse file tree
src/deepmol/compound_featurization Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ dgllife==0.3.2: deep-learning
2525deepchem==2.8.0: deep-learning
2626torch_geometric==2.6.1: deep-learning
2727tensorflow==2.15.0: deep-learning
28- tensorflow-probability==0.25 .0: deep-learning
28+ tensorflow-probability==0.23 .0: deep-learning
2929boruta==0.4.3: preprocessing, machine-learning
3030scikit-learn<1.6: machine-learning, deep-learning
3131optuna==4.1.0: machine-learning, deep-learning
Original file line number Diff line number Diff line change 2323dgllife == 0.3.2
2424dill == 0.3.6
2525optuna == 4.1.0
26- tensorflow-probability == 0.25 .0
26+ tensorflow-probability == 0.23 .0
2727torch_geometric == 2.6.1
2828scikit-multilearn == 0.2.0
2929scikeras == 0.12.0
Original file line number Diff line number Diff line change @@ -98,9 +98,14 @@ def featurize(self,
9898
9999 remove_mols_list = np .array (remove_mols )
100100 dataset .remove_elements (np .array (dataset .ids )[remove_mols_list ], inplace = True )
101-
101+
102102 features = np .array (features , dtype = object )
103103 features = features [~ remove_mols_list ]
104+
105+ try :
106+ features = features .astype ('float64' )
107+ except :
108+ pass
104109
105110 if (isinstance (features [0 ], np .ndarray ) and len (features [0 ].shape ) == 2 ) or not isinstance (features [0 ],
106111 np .ndarray ):
You can’t perform that action at this time.
0 commit comments