Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
YamLyubov committed Sep 5, 2023
1 parent 36cc40c commit 767f0f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions golem/core/optimisers/genetic/gp_params.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass
from typing import Sequence, Union, Any
from typing import Sequence, Union, Any, Callable

from golem.core.optimisers.adaptive.operator_agent import MutationAgentTypeEnum
from golem.core.optimisers.adaptive.mab_agents.neural_contextual_mab_agent import ContextAgentTypeEnum
Expand Down Expand Up @@ -76,7 +76,7 @@ class GPAlgorithmParameters(AlgorithmParameters):
required_valid_ratio: float = 0.9

adaptive_mutation_type: MutationAgentTypeEnum = MutationAgentTypeEnum.default
context_agent_type: ContextAgentTypeEnum = ContextAgentTypeEnum.nodes_num
context_agent_type: Union[ContextAgentTypeEnum, Callable] = ContextAgentTypeEnum.nodes_num

selection_types: Sequence[SelectionTypesEnum] = \
(SelectionTypesEnum.tournament,)
Expand Down

0 comments on commit 767f0f1

Please sign in to comment.