question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure to save model

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
maxpumperlacommented, Sep 13, 2018

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!

1reaction
maxpumperlacommented, Sep 10, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found