From 418dd6bce92544abbec1baeaa5873a661821ca59 Mon Sep 17 00:00:00 2001 From: Lucas Esclapez <13371051+esclapez@users.noreply.github.com> Date: Thu, 16 May 2024 14:20:31 +0200 Subject: [PATCH] [Episode 2] Make shape a tuple --- episodes/2-keras.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/episodes/2-keras.Rmd b/episodes/2-keras.Rmd index dcd96499..3c446e1f 100644 --- a/episodes/2-keras.Rmd +++ b/episodes/2-keras.Rmd @@ -327,7 +327,7 @@ and outputs a layer needs and therefore how many edges need to be created. This means we need to inform Keras how big our input is going to be. We do this by instantiating a `keras.Input` class and tell it how big our input is, thus the number of columns it contains. ```python -inputs = keras.Input(shape=X_train.shape[1]) +inputs = keras.Input(shape=(X_train.shape[1],)) ``` We store a reference to this input class in a variable so we can pass it to the creation of