auto_ml icon indicating copy to clipboard operation
auto_ml copied to clipboard

Logistic Regression does not work

Open avdusen opened this issue 6 years ago • 1 comments

Running the Boston housing example with: ml_predictor.train(df_boston_train,model_names=['LogisticRegression'])

I get the following error messages:

File "C:\Users\Anaconda3\lib\site-packages\auto_ml\predictor.py", line 670, in train self.trained_final_model = self.train_ml_estimator(self.model_names, self._scorer, X_df, y)

File "C:\Users\Anaconda3\lib\site-packages\auto_ml\predictor.py", line 1236, in train_ml_estimator trained_final_model = self.fit_single_pipeline(X_df, y, estimator_names[0], feature_learning=feature_learning, prediction_interval=False)

File "C:\Users\Anaconda3\lib\site-packages\auto_ml\predictor.py", line 875, in fit_single_pipeline ppl.fit(X_df, y)

File "C:\Users\Anaconda3\lib\site-packages\auto_ml\utils_model_training.py", line 297, in fit self.model.fit(X_fit, y)

File "C:\Users\Anaconda3\lib\site-packages\sklearn\linear_model\logistic.py", line 1217, in fit check_classification_targets(y)

File "C:\Users\Anaconda3\lib\site-packages\sklearn\utils\multiclass.py", line 172, in check_classification_targets raise ValueError("Unknown label type: %r" % y_type)

ValueError: Unknown label type: 'continuous'

avdusen avatar May 24 '18 17:05 avdusen

I have the same issue. Any update?

wcfrank avatar Aug 03 '18 07:08 wcfrank