deat(main): save results in reports folder

parent 12194abd
......@@ -916,7 +916,9 @@ def main():
for idx, pred in zip(test_indices, y_pred):
df_test_pred.loc[idx, "Force_RNN"] = pred
out_file = f"../../data/hysteretic_curves/{w_val}W/H{h_val}_B{b_val}/case_{predict_case}_with_rnn_preds.csv"
out_folder = f"../../reports/hysteretic_curves/{w_val}W/H{h_val}_B{b_val}"
os.makedirs(out_folder, exist_ok=True)
out_file = os.path.join(out_folder, f"case_{predict_case}_with_rnn_preds.csv")
df_test_pred.to_csv(out_file, index=False)
print(f"\nSaved predictions to: {out_file}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment