Skip to content

Commit cbb6281

Browse files
committed
fix: compatibility issues for qlib scenarios on finetune branch
1 parent f32281a commit cbb6281

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

rdagent/core/evolving_framework.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ class IterEvaluator(Evaluator):
9898
According to that strategy, we have iterative evaluation
9999
"""
100100

101+
def evaluate(self, eo: EvaluableObj) -> Feedback:
102+
"""
103+
Default implementation that runs evaluate_iter to completion.
104+
105+
Iterative evaluators can override this for custom behavior,
106+
or just implement evaluate_iter for standard iteration.
107+
"""
108+
gen = self.evaluate_iter()
109+
next(gen) # Kick off the generator
110+
try:
111+
return gen.send(eo)
112+
except StopIteration as e:
113+
return e.value
114+
101115
@abstractmethod
102116
def evaluate_iter(self) -> Generator[Feedback, EvaluableObj | None, Feedback]:
103117
"""

rdagent/utils/env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,7 @@ class QlibDockerConf(DockerConf):
10261026
shm_size: str | None = "16g"
10271027
enable_gpu: bool = True
10281028
enable_cache: bool = False
1029+
save_logs_to_file: bool = True # Explicitly inherit from DockerConf for compatibility
10291030

10301031

10311032
class KGDockerConf(DockerConf):

0 commit comments

Comments
 (0)