From f4e1975b3d1b129673f47adfb91782c4e2705051 Mon Sep 17 00:00:00 2001 From: WinstonLiyt <104308117+WinstonLiyt@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:47:04 +0800 Subject: [PATCH] fix a small bug in evaluators.py --- rdagent/components/coder/factor_coder/CoSTEER/evaluators.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rdagent/components/coder/factor_coder/CoSTEER/evaluators.py b/rdagent/components/coder/factor_coder/CoSTEER/evaluators.py index 9b8a0fe3..d88cd498 100644 --- a/rdagent/components/coder/factor_coder/CoSTEER/evaluators.py +++ b/rdagent/components/coder/factor_coder/CoSTEER/evaluators.py @@ -375,6 +375,9 @@ class FactorValueEvaluator(FactorEvaluator): high_correlation_result = False feedback_str = "The source dataframe and the ground truth dataframe have different index. Give up comparing the values and correlation because it's useless" conclusions.append(feedback_str) + else: + equal_value_ratio_result = 0 + high_correlation_result = False # Combine all conclusions into a single string conclusion_str = "\n".join(conclusions)