Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package/samplers/mab_epsilon_greedy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
author: Ryota Nishijima
title: MAB Epsilon-Greedy Sampler
title: Sampler Using Multi-Aarmed Bandit Epsilon-Greedy Algorithm
description: Sampler based on multi-armed bandit algorithm with epsilon-greedy arm selection.
tags: [sampler, multi-armed bandit]
optuna_versions: [4.0.0]
Expand Down
5 changes: 3 additions & 2 deletions package/samplers/mab_epsilon_greedy/mab_epsilon_greedy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

from collections import defaultdict
from typing import Any
from typing import Optional

from optuna.distributions import BaseDistribution
from optuna.samplers import RandomSampler
Expand All @@ -25,7 +26,7 @@ class MABEpsilonGreedySampler(RandomSampler):
def __init__(
self,
epsilon: float = 0.7,
seed: Optional[int] = None,
seed: int | None = None,
) -> None:
super().__init__(seed)
self._epsilon = epsilon
Expand Down