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.
1 parent 2072e89 commit e872791Copy full SHA for e872791
kerasTUT/4-regressor_example.py
@@ -29,7 +29,7 @@
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))
+model.add(Dense(units=1, input_dim=1))
33
34
# choose loss function and optimizing method
35
model.compile(loss='mse', optimizer='sgd')
@@ -52,4 +52,4 @@
52
Y_pred = model.predict(X_test)
53
plt.scatter(X_test, Y_test)
54
plt.plot(X_test, Y_pred)
55
-plt.show()
+plt.show()
0 commit comments