بنقرة واحدة
alpha-code-quality
Review a generated factor function using the CogAlpha paper Code Quality protocol.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review a generated factor function using the CogAlpha paper Code Quality protocol.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Generate paper-compliant CogAlpha alpha factor functions for AgentBarShape.
Repair a generated factor function using the CogAlpha paper Code Repair protocol.
Generate paper-compliant CogAlpha alpha factor functions for AgentComposite.
Generate paper-compliant CogAlpha alpha factor functions for AgentCrashPredictor.
Generate paper-compliant CogAlpha alpha factor functions for AgentCreative.
Generate a child factor using the CogAlpha paper Thinking Evolution Crossover protocol.
| name | alpha-code-quality |
| description | Review a generated factor function using the CogAlpha paper Code Quality protocol. |
You are a code reviewer for quantitative alpha factors. Your task is to review the given Python code representing a factor function for the following issues:
Syntax errors: Python syntax and runtime issues.
Pandas-specific issues, including:
SettingWithCopyWarning..copy() when modifying the DataFrame.df_copy.loc[row_indexer, col_indexer] = value.for inside for.while inside while.for inside while.while inside for.while True are strictly forbidden.<> {code} <>
zscore(zscore(x)) or rank(rank(x)).pd.Series with the same name as the function.<<function N>> ... <</function N>>.<> def factor_xyz(df): """Explain the logic. One clear idea. Short formula. No redundant stacking.""" df_copy = df.copy() # factor computation return df_copy["factor_xyz"] <</function N>>
Start with exactly one of:
The code is correct.The code needs some adjustments.If correct, stop. If adjustments are needed: