File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
package/samplers/mab_epsilon_greedy Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11---
22author : Ryota Nishijima
3- title : MAB Epsilon-Greedy Sampler
3+ title : Sampler Using Multi-Aarmed Bandit Epsilon-Greedy Algorithm
44description : Sampler based on multi-armed bandit algorithm with epsilon-greedy arm selection.
55tags : [sampler, multi-armed bandit]
66optuna_versions : [4.0.0]
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
13from collections import defaultdict
24from typing import Any
3- from typing import Optional
45
56from optuna .distributions import BaseDistribution
67from optuna .samplers import RandomSampler
@@ -25,7 +26,7 @@ class MABEpsilonGreedySampler(RandomSampler):
2526 def __init__ (
2627 self ,
2728 epsilon : float = 0.7 ,
28- seed : Optional [ int ] = None ,
29+ seed : int | None = None ,
2930 ) -> None :
3031 super ().__init__ (seed )
3132 self ._epsilon = epsilon
You can’t perform that action at this time.
0 commit comments