From af0c959d07ddbb64fe92a29b67e455fe76db9232 Mon Sep 17 00:00:00 2001 From: Ian Beauregard Date: Mon, 14 Sep 2020 07:52:07 -0400 Subject: [PATCH 1/2] 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). --- 10_neural_nets_with_keras.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/10_neural_nets_with_keras.ipynb b/10_neural_nets_with_keras.ipynb index caeac36..8c1ca66 100644 --- a/10_neural_nets_with_keras.ipynb +++ b/10_neural_nets_with_keras.ipynb @@ -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" ] }, From 30d160f8be9fa959ca507a6ca53bc891b98ade08 Mon Sep 17 00:00:00 2001 From: Ian Beauregard Date: Mon, 14 Sep 2020 09:35:42 -0400 Subject: [PATCH 2/2] Remove useless code cell --- 10_neural_nets_with_keras.ipynb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/10_neural_nets_with_keras.ipynb b/10_neural_nets_with_keras.ipynb index 8c1ca66..4bd30d9 100644 --- a/10_neural_nets_with_keras.ipynb +++ b/10_neural_nets_with_keras.ipynb @@ -1085,15 +1085,6 @@ "y_pred_main, y_pred_aux = model.predict((X_new_A, X_new_B))" ] }, - { - "cell_type": "code", - "execution_count": 67, - "metadata": {}, - "outputs": [], - "source": [ - "model = WideAndDeepModel(30, activation=\"relu\")" - ] - }, { "cell_type": "markdown", "metadata": {},