Skip to content

Can't attach an estimator that is instantiated without hyperparameters #657

New issue

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

Closed
BoecquaertJonas opened this issue Feb 25, 2019 · 1 comment

Comments

@BoecquaertJonas
Copy link

System Information

  • Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans): Tensorflow / LSTM
  • Framework Version: Latest
  • Python Version: 3.6
  • CPU or GPU: CPU
  • Python SDK Version: Latest

Describe the problem

I'm trying to save and load an LSTM-network. I have 2 notebooks, in the first I instantiate the estimator and use Estimator.fit() to train and save it. Then in the second notebook, I try to load it again with Estimator.attach(). However when I try this I'm getting the following keyError:
image

When initializing the estimator, I don't specify any hyperparameters:
image
When taking a look in the _init from the Estimator-class we can see that it defaults to None when no hyperparameters are specified:
image

But when taking a look in the response I get from .describe_training_job(), no key 'HyperParameters' is included. It seems that hyperparameters with an empty value don't get passed, resulting in this keyError I'm getting.
image

Is there a way when instantiating an estimator to give it 'fake' hyperparameters so that at least something gets passed along, skipping the keyError.

@mvsusp
Copy link
Contributor

mvsusp commented Feb 26, 2019

Hey @BoecquaertJonas

Thanks for pointing out the bug! We are in the process to review the code changes.
We will notify you when these code changes get merged.

Thanks for using SageMaker!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants