-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a more space efficient implementation in CrossNet Add custom_objects in utils which will be used in load_model function Add FAQ in docs
- Loading branch information
1 parent
d15a956
commit 3da641f
Showing
7 changed files
with
57 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FAQ | ||
========== | ||
1. How to save or load weights/models? | ||
|
||
To save/load weights,you can write codes just like any other keras models. | ||
|
||
.. code-block:: python | ||
model = DeepFM() | ||
model.save_weights('DeepFM_w.h5') | ||
model.load_weights('DeepFM_w.h5') | ||
To save/load models,just a little different. | ||
|
||
.. code-block:: python | ||
from tensorflow.python.keras.models import save_model,load_model | ||
model = DeepFM() | ||
save_model(model, 'DeepFM.h5')# save_model, same as before | ||
from deepctr.utils import custom_objects | ||
model = load_model('DeepFM.h5',custom_objects)# load_model,just add a parameter | ||
2. Does the models support multi-value input? | ||
|
||
Now only the `DIN <Features.html#din-deep-interest-network>`_ model support multi-value input,you can use layers in `sequence <deepctr.sequence.html>`_ to build your own models! | ||
And I will add the feature soon~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="deepctr", | ||
version="0.1.3", | ||
version="0.1.4", | ||
author="Weichen Shen", | ||
author_email="[email protected]", | ||
description="DeepCTR is a Easy-to-use,Modular and Extendible package of deep-learning based CTR models ,including serval DNN-based CTR models and lots of core components layer of the models which can be used to build your own custom model.", | ||
|