Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
44 views

VotingClassifier only supports binary or multiclass classification. Multilabel and multi-output classification are not supported

I got an error about KerasClassifer and VotingClassifer. At the first, I used MNIST dataset and split it then fit xtrain and ytrain by Voting classifer. If I put their estimator type into Classifier ...
HongViet's user avatar
1 vote
0 answers
34 views

use scikeras and scikit_learn [duplicate]

After doing the data preprocessing, with the following code: import tensorflow from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from scikeras.wrappers ...
Romain's user avatar
  • 147
1 vote
0 answers
108 views

GridSearch hyperparameter tuning with KerasClassifier : ValueError: Sequential model 'sequential' has no defined outputs yet

I am try to do an hyperparameter tuning for an LSTM model using GridSearch and KerasClassifier. It's a multiclass classification problem of a text dataset. I saw in the documentation that ...
Daouda's user avatar
  • 111
3 votes
1 answer
255 views

Persistent Issue Importing KerasClassifier

I’ve been facing a persistent issue with importing the KerasClassifier library in my Python environment, and I’m hoping to get some advice on how to resolve it. I keep encountering an intermittent ...
Zineb Boussedra's user avatar
0 votes
0 answers
141 views

KeyError: "Registering two gradient with name 'ReduceDataset'! - Tensorflow Keras import error

I'm working on a classification task by creating a simple network with keras. When I try to import the necessary packages from tensorflow import keras from keras.models import Sequential from keras....
all.m's user avatar
  • 93
0 votes
1 answer
171 views

problem between sklearn.model_selection.GridSearchCV and scikeras.wrappers.KerasClassifier

my sklearn version is 1.4.2 and my 0.13.0 , when i want to use gridsreach in classification , i got this error : ValueError: Invalid parameter activation for estimator KerasClassifier. This issue can ...
payam's user avatar
  • 26
1 vote
0 answers
105 views

Invalid parameter 'model' for estimator KerasRegressor

Can you guys tell me where am I going wrong with this implementation? Why am I getting the error: "Invalid parameter 'model' for estimator KerasRegressor" ? I would sincerely appreciate your ...
Deep's user avatar
  • 11
0 votes
1 answer
327 views

ValueError: Invalid parameter activation for estimator KerasRegressor

My code: #network from matplotlib import pyplot from keras.models import Sequential from keras.layers import LSTM, Dense,Dropout from keras.metrics import mae from keras .optimizers import Adam from ...
Khaled Saleh's user avatar
1 vote
0 answers
511 views

ValueError: Could not interpret metric identifier: loss using Keras and Scikeras

i want to use GridSearchCV using KerasClassifier, but i am stuck at the following error message: --------------------------------------------------------------------------- ValueError ...
bumbummath's user avatar
4 votes
2 answers
806 views

scikeras.wrappers.KerasClassifier returning ValueError: Could not interpret metric identifier: loss

I was looking into KerasClassifier, as I would like to plug it in a scikit-learn pipeline, but I'm getting the aforementioned ValueError. The following code should be able to reproduce the error I'm ...
Frederico Portela's user avatar