Failure to save model
See original GitHub issueI added a line to the ML pipeline example to persist a model:
pipeline = Pipeline(stages=[estimator])
fitted_pipeline = pipeline.fit(df)
pipeline.save('/path/to/save/elephas-model')
This results in the following error:
ValueError: ('Pipeline write will fail on this pipeline because stage %s of type %s is not MLWritable', 'ElephasEstimator_45da805673f52c212557', <class 'elephas.ml_model.ElephasEstimator'>)
This is against:
git+https://github.com/maxpumperla/elephas.git@cfa51da7d25f35f55728e09561b322c09852d8c0#egg=elephas
Is saving models supported?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ModelBuilder: Save Failed, Failed to save model
The error message is Save Failed. Failed to save model followed by the file path but with the incorrect model name at the...
Read more >Error "Failed to save the model in the file" occurs randomly
Error is returned "Failed to save the model in the file" while saving a model in either binary or XML file format. No...
Read more >Error: Could not save model. - Tekla User Assistance
Possible solutions: ... If you see the error "Unable to save the model. Check the log file for details." in a shared model,...
Read more >Unable to save model as SavedModel and/or .h5 · Issue #8588
[Y] I am using the latest TensorFlow Model Garden release and TensorFlow 2. ... Unable to save model as SavedModel and/or .h5 #8588....
Read more >Unable to save model with tensorflow 2.0.0 beta1
Consider saving to the Tensorflow SavedModel format (by setting save_format="tf") or using save_weights . ValueError: Model <main.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, that’s correct, loss is calculated in Keras. But the label-to-dataframe conversion in elephas might be broken. don’t have much time right now, but I guess the basic ml example in elephas has scalar labels?
In any case, I think this might be a legitimate bug. Would you mind opening a new issue with your full example (or anything I can use to reproduce this) and the full stack trace? I tend to lose track of comments in unrelated issues. thanks!
not yet, but it’s in the making as we speak. it’s in
mp_dl4j
branch with a ton of other cool stuff coming up.