We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey,
I tried running the nrms_ebnerd.ipynb, however I am unsure about the training part:
MODEL_NAME = "NRMS" LOG_DIR = f"downloads/runs/{MODEL_NAME}" MODEL_WEIGHTS = f"downloads/data/state_dict/{MODEL_NAME}/weights" # CALLBACKS tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=LOG_DIR, histogram_freq=1) early_stopping = tf.keras.callbacks.EarlyStopping(monitor="val_loss", patience=2) modelcheckpoint = tf.keras.callbacks.ModelCheckpoint( filepath=MODEL_WEIGHTS, save_best_only=True, save_weights_only=True, verbose=1 ) hparams_nrms.history_size = HISTORY_SIZE model = NRMSModel( hparams=hparams_nrms, word2vec_embedding=word2vec_embedding, seed=42, ) hist = model.model.fit( train_dataloader, validation_data=val_dataloader, epochs=1, callbacks=[tensorboard_callback, early_stopping], ) _ = model.model.load_weights(filepath=MODEL_WEIGHTS)
--- What is the MODEL_WEIGHTS file? How do I get it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey,
I tried running the nrms_ebnerd.ipynb, however I am unsure about the training part:
--- What is the MODEL_WEIGHTS file? How do I get it?
The text was updated successfully, but these errors were encountered: