跟特征数量没关系
Some checks are pending
Update Docker Hub Description / dockerHubDescription (push) Waiting to run

This commit is contained in:
zhangkun9038@dingtalk.com 2025-04-28 15:15:37 +08:00
parent 7da603fd08
commit 8535b10cea

View File

@ -219,6 +219,8 @@ class FreqaiExampleHybridStrategy(IStrategy):
1.0, # 数值型标签
0.0
)
# Reshape the target variable to be a 2D array
dataframe["&-up_or_down"] = dataframe["&-up_or_down"].values.reshape(-1, 1)
except Exception as e:
logger.error(f"Failed to create &-up_or_down column: {str(e)}")
raise