We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2072e89 + 309b821 commit 7269d08Copy full SHA for 7269d08
kerasTUT/4-regressor_example.py
@@ -29,7 +29,8 @@
29
30
# build a neural network from the 1st layer to the last layer
31
model = Sequential()
32
-model.add(Dense(output_dim=1, input_dim=1))
+
33
+model.add(Dense(units=1, input_dim=1))
34
35
# choose loss function and optimizing method
36
model.compile(loss='mse', optimizer='sgd')
@@ -52,4 +53,4 @@
52
53
Y_pred = model.predict(X_test)
54
plt.scatter(X_test, Y_test)
55
plt.plot(X_test, Y_pred)
-plt.show()
56
+plt.show()
0 commit comments