Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -207,7 +207,7 @@ end = start + train_split
|
|
207 |
if ("0" == "mycustom"):
|
208 |
x_train = train_data[[i for i in range(7)]].values
|
209 |
if ("0" != "mycustom"):
|
210 |
-
x_train = train_data[[i for i in range(
|
211 |
y_train = features.iloc[start:end][[1]]
|
212 |
|
213 |
sequence_length = int(past / step)
|
@@ -218,7 +218,7 @@ label_start = train_split + past + future
|
|
218 |
if ("0" == "mycustom"):
|
219 |
x_val = val_data.iloc[:x_end][[i for i in range(7)]].values
|
220 |
if ("0" != "mycustom"):
|
221 |
-
x_val = val_data.iloc[:x_end][[i for i in range(
|
222 |
y_val = features.iloc[label_start:][[1]]
|
223 |
|
224 |
dataset_val = keras.preprocessing.timeseries_dataset_from_array(
|
|
|
207 |
if ("0" == "mycustom"):
|
208 |
x_train = train_data[[i for i in range(7)]].values
|
209 |
if ("0" != "mycustom"):
|
210 |
+
x_train = train_data[[i for i in range(len(myfields))]].values
|
211 |
y_train = features.iloc[start:end][[1]]
|
212 |
|
213 |
sequence_length = int(past / step)
|
|
|
218 |
if ("0" == "mycustom"):
|
219 |
x_val = val_data.iloc[:x_end][[i for i in range(7)]].values
|
220 |
if ("0" != "mycustom"):
|
221 |
+
x_val = val_data.iloc[:x_end][[i for i in range(len(myfields))]].values
|
222 |
y_val = features.iloc[label_start:][[1]]
|
223 |
|
224 |
dataset_val = keras.preprocessing.timeseries_dataset_from_array(
|