Skip to content

Instantly share code, notes, and snippets.

@montanalow
Last active February 21, 2018 20:44
Show Gist options
  • Save montanalow/7a36fe7bfce9352b0047fe46298058a9 to your computer and use it in GitHub Desktop.
Save montanalow/7a36fe7bfce9352b0047fe46298058a9 to your computer and use it in GitHub Desktop.
# 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