Skip to content

Initialization of self._predict_stochastic #1

@jjkernst

Description

@jjkernst

Hi, I am attempting to run the Examples/sentiment_lstm_regression.py however I am running into some issues: it keeps failing on the initialization of the predict_stochastic function in the first callback of modeltest.

First the function fails on X = models.standardize_X(X), due to the below error. Is this function supposed to be standardize(X)? I can't find a standardize_X in the latest Keras pull (I am using 1.0.3)?
AttributeError: 'module' object has no attribute 'standardize_X'

The function then also fails on defining the K function because neither model.X_test nor model.y_train are defined. The example doesn't have a test set passed into the fit model, so I'm not sure which variable this would be referencing.
K.function([self.model.X_test], [self.model.y_train])
AttributeError: 'Sequential' object has no attribute 'X_test'

If I remove the Modeltest call backs, the training works fine.

Any help you could provide would be greatly appreciated. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions