feat: fix some bugs and add original features' description (#259)

* init a scenario for kaggle feature engineering

* fix some bugs and add original features' description

* refine the process of data downloading

* fix a error

* revert the code

* fix a bug in feedback

* fix a ci bug

* fix a ci bug
This commit is contained in:
WinstonLiyt
2024-09-12 00:30:16 +08:00
committed by GitHub
parent dbe2cf12bb
commit 82bef3a375
17 changed files with 51 additions and 107 deletions
@@ -9,6 +9,7 @@ from typing import Tuple, Union
import pandas as pd
from filelock import FileLock
from rdagent.app.kaggle.conf import KAGGLE_IMPLEMENT_SETTING
from rdagent.components.coder.factor_coder.config import FACTOR_IMPLEMENT_SETTINGS
from rdagent.core.exception import CodeFormatError, CustomRuntimeError, NoOutputError
from rdagent.core.experiment import Experiment, FBWorkspace, Task
@@ -148,9 +149,7 @@ class FactorFBWorkspace(FBWorkspace):
)
elif self.target_task.version == 2:
# TODO you can change the name of the data folder for a better understanding
source_data_path = Path(
FACTOR_IMPLEMENT_SETTINGS.data_folder,
)
source_data_path = Path(FACTOR_IMPLEMENT_SETTINGS.data_folder) / KAGGLE_IMPLEMENT_SETTING.competition
source_data_path.mkdir(exist_ok=True, parents=True)
code_path = self.workspace_path / f"factor.py"
@@ -237,3 +236,4 @@ class FactorFBWorkspace(FBWorkspace):
FactorExperiment = Experiment
FeatureExperiment = Experiment