Skip to content

Commit 309b821

Browse files
author
EmbraceLife
committed
update Dense with units
1 parent 73fea48 commit 309b821

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kerasTUT/4-regressor_example.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
# build a neural network from the 1st layer to the last layer
3131
model = Sequential()
32-
# update Dense arg 'units' here
33-
model.add(Dense(units=1, input_dim=1)) # edit same line1
32+
33+
model.add(Dense(units=1, input_dim=1))
3434

3535
# choose loss function and optimizing method
3636
model.compile(loss='mse', optimizer='sgd')

0 commit comments

Comments
 (0)