Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
update docs
  • Loading branch information
浅梦 authored Oct 18, 2020
1 parent 2090756 commit bc881dc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/requirements.readthedocs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tensorflow==1.15.4
2 changes: 1 addition & 1 deletion docs/source/Layers.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DeepCTR Layers API
DeepCTR-Torch Layers API
======================


Expand Down
2 changes: 1 addition & 1 deletion docs/source/Models.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DeepCTR-PyTorch Models API
DeepCTR-Torch Models API
======================

.. toctree::
Expand Down
9 changes: 9 additions & 0 deletions tests/models/AFM_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,20 @@ def test_AFM(use_attention, sparse_feature_num, dense_feature_num):
check_model(model, model_name, x, y)

early_stopping = EarlyStopping(monitor='val_binary_crossentropy', min_delta=0, verbose=1, patience=0, mode='min')

# test callbacks
model_checkpoint = ModelCheckpoint(filepath='model.ckpt', monitor='val_binary_crossentropy', verbose=1,
save_best_only=True,
save_weights_only=False, mode='max', period=1)
model.fit(x, y, batch_size=64, epochs=3, validation_split=0.5, callbacks=[early_stopping, model_checkpoint])

model_checkpoint = ModelCheckpoint(filepath='model.ckpt', monitor='val_binary_crossentropy', verbose=1,
save_best_only=False,
save_weights_only=False, mode='max', period=1)

model.fit(x, y, batch_size=64, epochs=3, validation_split=0.5, callbacks=[early_stopping, model_checkpoint])



if __name__ == '__main__':
pass

0 comments on commit bc881dc

Please sign in to comment.