Skip to content

Instantly share code, notes, and snippets.

@MLWhiz
Created March 30, 2019 07:07
Show Gist options
  • Save MLWhiz/03ed80d32aaba37fb1240d4d03897456 to your computer and use it in GitHub Desktop.
Save MLWhiz/03ed80d32aaba37fb1240d4d03897456 to your computer and use it in GitHub Desktop.
# Language model data : We use test_df as validation for language model
data_lm = TextLMDataBunch.from_df(path = "",train_df= train_df ,valid_df = test_df)
learn = language_model_learner(data_lm, AWD_LSTM, drop_mult=0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment