mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-05 19:17:43 +00:00
feat: refactor CoSTEER classes to use DSCoSTEER and update max seconds handling (#1156)
* feat: refactor CoSTEER classes to use DSCoSTEER and update max seconds handling * remove useless line * enable time_ratio_limit_to_enable_hyperparameter_tuning
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
from rdagent.components.coder.CoSTEER import CoSTEER
|
||||
|
||||
|
||||
class DSCoSTEER(CoSTEER):
|
||||
def get_develop_max_seconds(self) -> int | None:
|
||||
"""
|
||||
The coder uses the scenario's real debug timeout as the maximum seconds for development.
|
||||
"""
|
||||
return int(self.scen.real_debug_timeout() * self.settings.max_seconds_multiplier)
|
||||
Reference in New Issue
Block a user