Skip to content

Commit 73a620b

Browse files
nzw0301fchollet
authored andcommitted
Update calback page (keras-team#6289)
1 parent e0697c3 commit 73a620b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/templates/callbacks.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class LossHistory(keras.callbacks.Callback):
3636
self.losses.append(logs.get('loss'))
3737

3838
model = Sequential()
39-
model.add(Dense(10, input_dim=784, init='uniform'))
39+
model.add(Dense(10, input_dim=784, kernel_initializer='uniform'))
4040
model.add(Activation('softmax'))
4141
model.compile(loss='categorical_crossentropy', optimizer='rmsprop')
4242

@@ -58,7 +58,7 @@ print history.losses
5858
from keras.callbacks import ModelCheckpoint
5959

6060
model = Sequential()
61-
model.add(Dense(10, input_dim=784, init='uniform'))
61+
model.add(Dense(10, input_dim=784, kernel_initializer='uniform'))
6262
model.add(Activation('softmax'))
6363
model.compile(loss='categorical_crossentropy', optimizer='rmsprop')
6464

keras/callbacks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ class TensorBoard(Callback):
578578
tensorboard --logdir=/full_path_to_your_logs
579579
```
580580
You can find more information about TensorBoard
581-
[here](https://www.tensorflow.org/versions/master/how_tos/summaries_and_tensorboard/index.html).
581+
[here](https://www.tensorflow.org/get_started/summaries_and_tensorboard).
582582
583583
# Arguments
584584
log_dir: the path of the directory where to save the log

0 commit comments

Comments
 (0)