mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 20:19:29 +01:00
Remove soon-to-be-deprecated method
Warning: THIS FUNCTION IS DEPRECATED. It will be removed after 2021-01-01. Instructions for updating: Please use instead: np.argmax(model.predict(x), axis=-1), if your model does multi-class classification (e.g. if it uses a softmax last-layer activation).
This commit is contained in:
@@ -741,7 +741,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"y_pred = model.predict_classes(X_new)\n",
|
||||
"y_pred = np.argmax(model.predict(X_new), axis=-1)\n",
|
||||
"y_pred"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user