mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
fce241b9f9
* Use ExtendedBaseSettings to replace BaseSettings * update a more general way to pass the default setting * update all code * fix CI * fix CI * fix qlib scenario * fix CI * fix CI * fix CI & add data science interfaces * remove redundant code * abandon costeer knowledge base v1 --------- Co-authored-by: Xu Yang <xuyang1@microsoft.com> Co-authored-by: XianBW <36835909+XianBW@users.noreply.github.com>
40 lines
1.0 KiB
Python
40 lines
1.0 KiB
Python
from typing import Union
|
|
|
|
from rdagent.core.conf import ExtendedBaseSettings
|
|
|
|
|
|
class CoSTEERSettings(ExtendedBaseSettings):
|
|
"""CoSTEER settings, this setting is supposed not to be used directly!!!"""
|
|
|
|
class Config:
|
|
env_prefix = "CoSTEER_"
|
|
|
|
coder_use_cache: bool = False
|
|
"""Indicates whether to use cache for the coder"""
|
|
|
|
max_loop: int = 10
|
|
"""Maximum number of task implementation loops"""
|
|
|
|
fail_task_trial_limit: int = 20
|
|
|
|
v1_query_former_trace_limit: int = 5
|
|
v1_query_similar_success_limit: int = 5
|
|
|
|
v2_query_component_limit: int = 1
|
|
v2_query_error_limit: int = 1
|
|
v2_query_former_trace_limit: int = 1
|
|
v2_add_fail_attempt_to_latest_successful_execution: bool = False
|
|
v2_error_summary: bool = False
|
|
v2_knowledge_sampler: float = 1.0
|
|
|
|
knowledge_base_path: Union[str, None] = None
|
|
"""Path to the knowledge base"""
|
|
|
|
new_knowledge_base_path: Union[str, None] = None
|
|
"""Path to the new knowledge base"""
|
|
|
|
select_threshold: int = 10
|
|
|
|
|
|
CoSTEER_SETTINGS = CoSTEERSettings()
|