Last active
February 21, 2018 20:44
-
-
Save montanalow/7a36fe7bfce9352b0047fe46298058a9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# my_app/models/product_popularity.py | |
import lore.models.keras | |
import my_app.pipelines.product_popularity | |
import my_app.estimators.product_popularity | |
class Keras(lore.models.keras.Base): | |
def __init__(self, pipeline=None, estimator=None): | |
super(Keras, self).__init__( | |
my_app.pipelines.product_popularity.Holdout(), | |
my_app.estimators.product_popularity.Keras( | |
hidden_layers=2, | |
embed_size=4, | |
hidden_width=256, | |
batch_size=1024, | |
sequence_embedding='lstm', | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment