Skip to content

Commit

Permalink
fix a bug in factor_execution_template_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
WinstonLiyt committed Nov 25, 2024
1 parent 2d588b7 commit a6a097d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
import h5py

import numpy as np
import pandas as pd
from feat01 import feat_eng
Expand All @@ -12,5 +12,5 @@ else:

X, y, p = feat_eng(X, y)

with h5py.File('result.h5', 'w') as hf:
hf.create_dataset('default', data=X)
X = pd.dataframe(X)
X.to_hdf("result.h5", key="data", mode="w")
4 changes: 1 addition & 3 deletions rdagent/scenarios/kaggle/experiment/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ def background(self) -> str:
Path(__file__).resolve()
/ Path(KAGGLE_IMPLEMENT_SETTING.template_path).resolve()
/ KAGGLE_IMPLEMENT_SETTING.competition
/ "train.py"
if KAGGLE_IMPLEMENT_SETTING.template_path != "rdagent/scenarios/kaggle/tpl_ex"
else "main.py"
/ ("train.py" if KAGGLE_IMPLEMENT_SETTING.template_path != "rdagent/scenarios/kaggle/tpl_ex" else "main.py")
).read_text()

background_prompt = (
Expand Down

0 comments on commit a6a097d

Please sign in to comment.