Skip to content

Commit

Permalink
feat: refine logic for qlib_factor_from_report (#463)
Browse files Browse the repository at this point in the history
* fix a bug in kaggle conf

* fix a ci error

* refine logic for qlib_factor_from_report
  • Loading branch information
WinstonLiyt authored Oct 31, 2024
1 parent 5d2a1f0 commit 21348d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rdagent/app/qlib_rd_loop/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ class FactorFromReportPropSetting(FactorBasePropSetting):
max_factors_per_exp: int = 10000
"""Maximum number of factors implemented per experiment"""

is_report_limit_enabled: bool = False
"""Limits report processing count if True; processes all if False"""


FACTOR_PROP_SETTING = FactorBasePropSetting()
FACTOR_FROM_REPORT_PROP_SETTING = FactorFromReportPropSetting()
Expand Down
2 changes: 1 addition & 1 deletion rdagent/app/qlib_rd_loop/factor_from_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __init__(self, report_folder: str = None):
def propose_hypo_exp(self, prev_out: dict[str, Any]):
with logger.tag("r"):
while True:
if self.valid_pdf_file_count > 15:
if FACTOR_FROM_REPORT_PROP_SETTING.is_report_limit_enabled and self.valid_pdf_file_count > 15:
break
report_file_path = self.judge_pdf_data_items[self.pdf_file_index]
logger.info(f"Processing number {self.pdf_file_index} report: {report_file_path}")
Expand Down

0 comments on commit 21348d8

Please sign in to comment.