[2026-05-28] 외부 데이터 학습 파이프라인 복구

This commit is contained in:
2026-05-28 20:13:27 +09:00
parent 57e945ef28
commit e1a32ce177
6 changed files with 152 additions and 14 deletions
+13 -1
View File
@@ -15,16 +15,24 @@ EXCLUDED_COLUMNS = {
"name",
"entry_time",
"exit_time",
"exit_price",
"sample_time",
"created_at",
"exit_reason",
"strategy",
"reason",
"pnl",
"source_file",
"ai_win_score",
"ai_stop_loss_score",
"ai_model_version",
}
EXCLUDED_PREFIXES = (
"price_",
"ret_",
"mfe_",
"mae_",
)
def select_feature_columns(df: pd.DataFrame, targets: Iterable[str] = LABEL_COLUMNS) -> list[str]:
@@ -32,7 +40,11 @@ def select_feature_columns(df: pd.DataFrame, targets: Iterable[str] = LABEL_COLU
numeric_columns = [
column
for column in df.columns
if column not in excluded and pd.api.types.is_numeric_dtype(df[column])
if (
column not in excluded
and not column.startswith(EXCLUDED_PREFIXES)
and pd.api.types.is_numeric_dtype(df[column])
)
]
return sorted(numeric_columns)