Skip to content
Advertisement

Error in implementing autokeras timeseries model

I was trying to implement autokeras TimeSeriesForecaster on a serial dataset. The features and label of the dataset are respectively given below.

df1_x = enter image description here

JavaScript

AutoML preparation

JavaScript

The dataframe has no NaN values, the shape of the features dataframe is (7111, 8) i.e. a 2D dataframe.

But the error came as following:

JavaScript

Advertisement

Answer

You need to provide validation data to the fit(). If you split the data you have (df1) to trainset and validation, and provide both of them to fit(), the training will work well. Try using train_test_split to split your data, or you could do it manually. your code would be something like that:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement