mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-09 21:10:56 +00:00
add_logger_to_factor_and_fix_a_small_bug_in_factor_runner (#85)
This commit is contained in:
@@ -36,11 +36,22 @@ qlib_factor_summarizer: HypothesisExperiment2Feedback = import_class(PROP_SETTIN
|
||||
trace = Trace(scen=scen)
|
||||
for _ in range(PROP_SETTING.evolving_n):
|
||||
try:
|
||||
hypothesis = hypothesis_gen.gen(trace)
|
||||
exp = hypothesis2experiment.convert(hypothesis, trace)
|
||||
exp = qlib_factor_coder.develop(exp)
|
||||
exp = qlib_factor_runner.develop(exp)
|
||||
feedback = qlib_factor_summarizer.generateFeedback(exp, hypothesis, trace)
|
||||
with logger.tag("r"): # research
|
||||
hypothesis = hypothesis_gen.gen(trace)
|
||||
logger.log_object(hypothesis, tag="hypothesis generation")
|
||||
|
||||
exp = hypothesis2experiment.convert(hypothesis, trace)
|
||||
logger.log_object(exp.sub_tasks, tag="experiment generation")
|
||||
|
||||
with logger.tag("d"):
|
||||
exp = qlib_factor_coder.develop(exp)
|
||||
logger.log_object(exp.sub_workspace_list)
|
||||
|
||||
with logger.tag("ef"):
|
||||
exp = qlib_factor_runner.develop(exp)
|
||||
logger.log_object(exp, tag="factor runner result")
|
||||
feedback = qlib_factor_summarizer.generateFeedback(exp, hypothesis, trace)
|
||||
logger.log_object(feedback, tag="feedback")
|
||||
|
||||
trace.hist.append((hypothesis, exp, feedback))
|
||||
except FactorEmptyException as e:
|
||||
|
||||
Reference in New Issue
Block a user