Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
existing code, in base_model.py, under the fit function -
if self.hparams.save_model:
Modified code:
from os.path import join
.
.
.
if self.hparams.save_model:
if epoch % self.hparams.save_epoch == 0:
save_path_str = join(self.hparams.MODEL_DIR, "epoch_" + str(epoch))
checkpoint_path = self.saver.save(
sess=train_sess,
save_path= save_path_str,
)
Azure Machine Learning service tests :-
Code in AML -
AML outputs folder -
Local machine tests (using xdeepfm_criteo notebook in 00_quick_start) :-
prepare_hparams() -
local directory -
When running the xDeepFM script, the model was not getting saved to the ./outputs directory in the Azure Machine Learning Service. This was due to the way in which the string concatenation for save directory was set up - the model directory & the file names were concatenated without a "/" in between them. As a result, Azure Machine Learning Service was not able to save models.
Related Issues
This is a fix for Issue #970
Checklist: