ageron / ageron/handson-ml2

[Chapter 10] model.predict_classes is depreciated

Open
#228 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
30k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

Cell [44] command:

`y_pred = model.predict_classes(X_new)
`
is depreciated in 2021, it is best to replace by:

`y_pred = np.argmax(model.predict(X_new), axis=-1)`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.