Spaces:
Sleeping
Sleeping
Update app.py
Browse files260 unmodified lines26126226326426426526626751 unmodified lines31932032132232232332432525 unmodified lines35135235335435435535635725 unmodified lines383384385386386387388389260 unmodified lines 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)")
# 6. Train-Test Split x_t, x_tes, y_t, y_tes = train_test_split(x_train, y_train, test_size=0.015, shuffle=True) x_t, x_tes, y_t, y_tes = train_test_split(x_train, y_train, test_size=0.015, shuffle=False)
# 7. Tensor Conversion and move to device X_train_t = torch.tensor(x_t, dtype=torch.float32).to(device)51 unmodified lines
for attempt in range(max_retries_per_iteration): rand_limit_offset = random.randrange(-100, 101, 2) rand_timeframe_offset = random.randrange(-6, 7, 2) rand_timeframe_offset = random.randrange(-2, 9, 2) current_limit_for_attempt = max(100, base_limit_1 + rand_limit_offset) current_timeframe_for_attempt = max(5, base_timeframe_1 + rand_timeframe_offset)
25 unmodified lines
for attempt in range(max_retries_per_iteration): rand_limit_offset = random.randrange(-100, 101, 2) rand_timeframe_offset = random.randrange(-6, 7, 2) rand_timeframe_offset = random.randrange(-2, 9, 2) current_limit_for_attempt = max(100, base_limit_2 + rand_limit_offset) current_timeframe_for_attempt = max(5, base_timeframe_2 + rand_timeframe_offset)
25 unmodified lines
for attempt in range(max_retries_per_iteration): rand_limit_offset = random.randrange(-100, 101, 2) rand_timeframe_offset = random.randrange(-6, 7, 2) rand_timeframe_offset = random.randrange(-2, 9, 2) current_limit_for_attempt = max(100, base_limit_3 + rand_limit_offset) current_timeframe_for_attempt = max(5, base_timeframe_3 + rand_timeframe_offset)
app.py+4-4