You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tpot2/tpot_estimator/estimator.py
+28-16
Original file line number
Diff line number
Diff line change
@@ -619,23 +619,35 @@ def fit(self, X, y):
619
619
ifself.preprocessing:
620
620
#X = pd.DataFrame(X)
621
621
622
-
#TODO: check if there are missing values in X before imputation. If not, don't include imputation in pipeline. Check if there are categorical columns. If not, don't include one hot encoding in pipeline
#TODO: check if there are missing values in X before imputation. If not, don't include imputation in pipeline. Check if there are categorical columns. If not, don't include one hot encoding in pipeline
626
+
else: #if self.preprocessing is True or not a sklearn estimator
627
+
628
+
pipeline_steps= []
629
+
630
+
ifself.categorical_featuresisnotNone: #if categorical features are specified, use those
Copy file name to clipboardExpand all lines: tpot2/tpot_estimator/steady_state_estimator.py
+28-16
Original file line number
Diff line number
Diff line change
@@ -605,23 +605,35 @@ def fit(self, X, y):
605
605
ifself.preprocessing:
606
606
#X = pd.DataFrame(X)
607
607
608
-
#TODO: check if there are missing values in X before imputation. If not, don't include imputation in pipeline. Check if there are categorical columns. If not, don't include one hot encoding in pipeline
#TODO: check if there are missing values in X before imputation. If not, don't include imputation in pipeline. Check if there are categorical columns. If not, don't include one hot encoding in pipeline
612
+
else: #if self.preprocessing is True or not a sklearn estimator
613
+
614
+
pipeline_steps= []
615
+
616
+
ifself.categorical_featuresisnotNone: #if categorical features are specified, use those
0 commit comments