ls증권 히스토리 구독 넣음
This commit is contained in:
@@ -51,8 +51,14 @@ def suggest_tail_params(trial: optuna.Trial, mode: str) -> Dict[str, Any]:
|
||||
return _suggest_from_grid(trial, _tail_grids(mode))
|
||||
|
||||
|
||||
def suggest_momentum_params(trial: optuna.Trial, mode: str) -> Dict[str, Any]:
|
||||
combo = _suggest_from_grid(trial, _momentum_grids()[mode])
|
||||
def suggest_momentum_params(
|
||||
trial: optuna.Trial,
|
||||
mode: str,
|
||||
*,
|
||||
market: str = "KR",
|
||||
) -> Dict[str, Any]:
|
||||
mk = (market or "KR").strip().upper() or "KR"
|
||||
combo = _suggest_from_grid(trial, _momentum_grids(market=mk)[mode])
|
||||
if not _momentum_combo_grid_valid(combo):
|
||||
raise optuna.TrialPruned("momentum invalid combo")
|
||||
return combo
|
||||
@@ -74,8 +80,9 @@ def tail_grid_axis_keys(mode: str) -> List[str]:
|
||||
return list(_tail_grids(mode).keys())
|
||||
|
||||
|
||||
def momentum_grid_axis_keys(mode: str) -> List[str]:
|
||||
return list(_momentum_grids()[mode].keys())
|
||||
def momentum_grid_axis_keys(mode: str, *, market: str = "KR") -> List[str]:
|
||||
mk = (market or "KR").strip().upper() or "KR"
|
||||
return list(_momentum_grids(market=mk)[mode].keys())
|
||||
|
||||
|
||||
def breakout_grid_axis_keys(mode: str) -> List[str]:
|
||||
|
||||
Reference in New Issue
Block a user