a10 commited on
Commit
e59040d
·
1 Parent(s): 8485ab7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -206,24 +206,23 @@ end = start + train_split
206
 
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
-
212
- if ("0" == "mycustom"):
213
  y_train = features.iloc[start:end][[1]]
214
  if ("0" != "mycustom"):
 
215
  y_train = features.iloc[start:end][[0]]
216
 
217
  sequence_length = int(past / step)
218
  x_end = len(val_data) - past - future
219
 
220
  label_start = train_split + past + future
 
221
 
222
  if ("0" == "mycustom"):
223
  x_val = val_data.iloc[:x_end][[i for i in range(7)]].values
 
224
  if ("0" != "mycustom"):
225
  x_val = val_data.iloc[:x_end][[i for i in range(len(myfields))]].values
226
- y_val = features.iloc[label_start:][[1]]
227
 
228
  dataset_val = keras.preprocessing.timeseries_dataset_from_array(
229
  x_val,
@@ -273,3 +272,4 @@ fig = plot()
273
  st.pyplot(fig)
274
 
275
  # %%
 
 
206
 
207
  if ("0" == "mycustom"):
208
  x_train = train_data[[i for i in range(7)]].values
 
 
 
 
209
  y_train = features.iloc[start:end][[1]]
210
  if ("0" != "mycustom"):
211
+ x_train = train_data[[i for i in range(len(myfields))]].values
212
  y_train = features.iloc[start:end][[0]]
213
 
214
  sequence_length = int(past / step)
215
  x_end = len(val_data) - past - future
216
 
217
  label_start = train_split + past + future
218
+ st.write(label_start)
219
 
220
  if ("0" == "mycustom"):
221
  x_val = val_data.iloc[:x_end][[i for i in range(7)]].values
222
+ y_val = features.iloc[label_start:][[1]]
223
  if ("0" != "mycustom"):
224
  x_val = val_data.iloc[:x_end][[i for i in range(len(myfields))]].values
225
+ y_val = features.iloc[label_start:][[0]]
226
 
227
  dataset_val = keras.preprocessing.timeseries_dataset_from_array(
228
  x_val,
 
272
  st.pyplot(fig)
273
 
274
  # %%
275
+