From f502ee2338eb734b8b872ece5d93b583dd5f3c0e Mon Sep 17 00:00:00 2001 From: Kai Li <1196594711@qq.com> Date: Wed, 20 Jul 2016 03:18:25 +0800 Subject: [PATCH] Update sequential-model-guide.md (#3257) --- docs/templates/getting-started/sequential-model-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/templates/getting-started/sequential-model-guide.md b/docs/templates/getting-started/sequential-model-guide.md index 0721f8e6d69..3ecd6258cb7 100644 --- a/docs/templates/getting-started/sequential-model-guide.md +++ b/docs/templates/getting-started/sequential-model-guide.md @@ -149,7 +149,7 @@ Keras models are trained on Numpy arrays of input data and labels. For training # for a single-input model with 2 classes (binary): model = Sequential() -model.add(Dense(1, input_dim=784, activation='softmax')) +model.add(Dense(1, input_dim=784, activation='sigmoid')) model.compile(optimizer='rmsprop', loss='binary_crossentropy', metrics=['accuracy'])