Completed
Push — master ( ce1e03...f67568 )
by Simon
14:21
created

hyperactive.optimizers.sequence_model.decision_tree_optimizer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A DecisionTreeOptimizer.__init__() 0 4 1
1
# Author: Simon Blanke
2
# Email: [email protected]
3
# License: MIT License
4
5
6
from .bayesian_optimization import BayesianOptimizer
7
8
9
class DecisionTreeOptimizer(BayesianOptimizer):
10
    """Based on the forest-optimizer in the scikit-optimize package"""
11
12
    def __init__(self, _opt_args_):
13
        super().__init__(_opt_args_)
14
        self.n_positioners = 1
15
        self.regr = _opt_args_.tree_regressor
16