Skip to content

Commit bc881dc

Browse files
author
浅梦
authored
update docs
update docs
1 parent 2090756 commit bc881dc

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

docs/requirements.readthedocs.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tensorflow==1.15.4

docs/source/Layers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DeepCTR Layers API
1+
DeepCTR-Torch Layers API
22
======================
33

44

docs/source/Models.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DeepCTR-PyTorch Models API
1+
DeepCTR-Torch Models API
22
======================
33

44
.. toctree::

tests/models/AFM_test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,20 @@ def test_AFM(use_attention, sparse_feature_num, dense_feature_num):
2222
check_model(model, model_name, x, y)
2323

2424
early_stopping = EarlyStopping(monitor='val_binary_crossentropy', min_delta=0, verbose=1, patience=0, mode='min')
25+
26+
# test callbacks
2527
model_checkpoint = ModelCheckpoint(filepath='model.ckpt', monitor='val_binary_crossentropy', verbose=1,
2628
save_best_only=True,
2729
save_weights_only=False, mode='max', period=1)
2830
model.fit(x, y, batch_size=64, epochs=3, validation_split=0.5, callbacks=[early_stopping, model_checkpoint])
2931

32+
model_checkpoint = ModelCheckpoint(filepath='model.ckpt', monitor='val_binary_crossentropy', verbose=1,
33+
save_best_only=False,
34+
save_weights_only=False, mode='max', period=1)
35+
36+
model.fit(x, y, batch_size=64, epochs=3, validation_split=0.5, callbacks=[early_stopping, model_checkpoint])
37+
38+
3039

3140
if __name__ == '__main__':
3241
pass

0 commit comments

Comments
 (0)