Skip to content

Commit e872791

Browse files
author
EmbraceLife
committed
update Dense
1 parent 2072e89 commit e872791

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kerasTUT/4-regressor_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# build a neural network from the 1st layer to the last layer
3131
model = Sequential()
32-
model.add(Dense(output_dim=1, input_dim=1))
32+
model.add(Dense(units=1, input_dim=1))
3333

3434
# choose loss function and optimizing method
3535
model.compile(loss='mse', optimizer='sgd')
@@ -52,4 +52,4 @@
5252
Y_pred = model.predict(X_test)
5353
plt.scatter(X_test, Y_test)
5454
plt.plot(X_test, Y_pred)
55-
plt.show()
55+
plt.show()

0 commit comments

Comments
 (0)