freegpu commited on
Commit
6a24378
·
verified ·
1 Parent(s): 880ba02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -261,7 +261,7 @@ def _train_and_predict(CryptoName, Limit, Timeframe, marketType, ohlcv_timeframe
261
  print(f"Dataset created with timestep={timestep}. X_train shape: {x_train.shape}, y_train shape: {y_train.shape}, final_preds_raw shape: (1, 12, 8)")
262
 
263
  # 6. Train-Test Split
264
- x_t, x_tes, y_t, y_tes = train_test_split(x_train, y_train, test_size=0.01, shuffle=True)
265
 
266
  # 7. Tensor Conversion and move to device
267
  X_train_t = torch.tensor(x_t, dtype=torch.float32).to(device)
 
261
  print(f"Dataset created with timestep={timestep}. X_train shape: {x_train.shape}, y_train shape: {y_train.shape}, final_preds_raw shape: (1, 12, 8)")
262
 
263
  # 6. Train-Test Split
264
+ x_t, x_tes, y_t, y_tes = train_test_split(x_train, y_train, test_size=0.015, shuffle=True)
265
 
266
  # 7. Tensor Conversion and move to device
267
  X_train_t = torch.tensor(x_t, dtype=torch.float32).to(device)