镜像自地址
https://github.com/MINT-SJTU/Evo-RL.git
已同步 2026-11-20 18:17:06 +00:00
chore(ci): make quality checks pass across repo
- fix ruff violations in dataset, recording, and value modules - fix typos findings and markdown/workflow lint issues - update pages workflow checkout to disable credential persistence - apply pre-commit auto-formatting and EOF normalization - include requested repo housekeeping updates (.gitignore and README)
这个提交包含在:
@ -41,7 +41,9 @@ class ValueTargetsConfig:
|
||||
if self.c_fail_coef < 0:
|
||||
raise ValueError("'targets.c_fail_coef' must be non-negative.")
|
||||
if not self.target_field.startswith("observation."):
|
||||
raise ValueError("'targets.target_field' must start with 'observation.' to survive processor conversion.")
|
||||
raise ValueError(
|
||||
"'targets.target_field' must start with 'observation.' to survive processor conversion."
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
@ -113,7 +115,7 @@ class ValueTrainPipelineConfig(HubMixin):
|
||||
self.targets.validate()
|
||||
|
||||
if hasattr(self.value, "target_key"):
|
||||
setattr(self.value, "target_key", self.targets.target_field)
|
||||
self.value.target_key = self.targets.target_field
|
||||
|
||||
if not self.job_name:
|
||||
self.job_name = f"{self.value.type}_value"
|
||||
@ -136,7 +138,9 @@ class ValueTrainPipelineConfig(HubMixin):
|
||||
self.scheduler = self.value.get_scheduler_preset()
|
||||
|
||||
if self.value.push_to_hub and not self.value.repo_id:
|
||||
raise ValueError("'value.repo_id' argument missing. Please specify it to push the model to the hub.")
|
||||
raise ValueError(
|
||||
"'value.repo_id' argument missing. Please specify it to push the model to the hub."
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def __get_path_fields__(cls) -> list[str]:
|
||||
|
||||
在新工单中引用
屏蔽一个用户