mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-31 12:07:49 +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": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"y_pred = model.predict_classes(X_new)\n",
|
"y_pred = np.argmax(model.predict(X_new), axis=-1)\n",
|
||||||
"y_pred"
|
"y_pred"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user