No method "predict_classes" in Model
See original GitHub issueIt seems that only Sequential models have the predict_classes
method, which means that a model built using the functional API cannot be wrapped using the SKlearn KerasClassifier
class. Is there a technical reason this is not implemented?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
AttributeError: 'Model' object has no attribute 'predict_classes'
The predict_classes method is only available for the Sequential class (which is the class of your first model) but not for the Model...
Read more >'Sequential' object has no attribute 'predict_classes ... - GitHub
model.predict_classes is deprecated, So you can try replacing ... predict_x=model.predict(token_list) ... why it is not working for me?
Read more >'Sequential' object has no attribute 'predict_classes'
Hello All,. I'm trying to run my model but facing "'Sequential' object has no attribute 'predict_classes' " I have
Read more >How to use a model to do predictions with Keras - ActiveState
Keras models can be used to detect trends and make predictions, using the model.predict() class and it's variant, ...
Read more >'Functional' object has no attribute 'predict_classes'' - Data ...
I was able to fix my issue by making the following changes. From: # Making prediction y_pred = (model.predict_classes(testX)) y_true ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here is an example for nlp `
It would be nice to add this method to the Model class, in order to give the same funtionalities of the Sequential api