diff --git a/timeframe_test.py b/timeframe_test.py index 0336cf3..c64a833 100644 --- a/timeframe_test.py +++ b/timeframe_test.py @@ -204,7 +204,7 @@ def run_backtest(prices, dates, data, K, corr_thresh, fast=False): if retrain_ctr >= 10: ws = np.array([dd["norm_input"] for dd in data[:i + 1]]) ts = np.array([dd["norm_target"] for dd in data[:i + 1]]) - train_model(model, ws, ts, FINETUNE_EPOCHS) + train_model(model, ws, ts, finetune_ep) retrain_ctr = 0 return {"trades": trades, "n_windows": len(data)}