Skip to content

Work with Tensorflow 2.2.0 and built-in Keras: Exception has occurred: ValueError #25

Description

@krivenkoz

Hi Titu!
First of all many thanks for sharing RNN for TSC. It's very useful!

I'm using Tensorflow 2.2.0 and built-in Keras, so slightly change the code (for example, using 'from tensorflow.keras.models import Model' instead of 'from keras.models import Model')
When i'm trying to run all_datasets_training.py, I've got next error in keras_utils.py (both Windows and Linux):

Exception has occurred: ValueError
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

It occurs in train_model function within row:
model.fit(X_train, y_train, batch_size=batch_size, epochs=epochs, callbacks=callback_list,
class_weight=class_weight, verbose=2, validation_data=(X_test, y_test))

The shape of input data (GunPoint):
X_train [50, 1 , 150]
X_test [150, 1, 150]

What am I do wrong?
image_2020_07_03T12_47_01_333Z

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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