Skip to content

Unable to load Trained Model (LSTMTimeStep) from JSON File #262

@albertp89

Description

@albertp89

What is wrong?

I trained a model and saved to a file using
JSON.stringify(net.toJSON());

I've confirmed the object is properly read in and loaded.
When trying to run net.run(someData) it gives this error
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'runInput' of undefined

Maybe I'm doing something wrong...

Where does it happen?

When trying to load a trained model from a JSON file of type LSTMTimeStep

How do we replicate the issue?

Train a model using LSTMT, JSONify it and try to load it back in.
Can see console output running the following JSFiddle
JSFiddle: http://jsfiddle.net/usrbjkt5/18

How important is this (1-5)?

3

Expected behavior (i.e. solution)

Model is properly loaded and able to be run.

Other Comments

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions