10
10
from autoPyTorch .pipeline .base_pipeline import BasePipeline
11
11
from autoPyTorch .pipeline .components .base_choice import autoPyTorchChoice
12
12
from autoPyTorch .pipeline .components .setup .traditional_ml .base_model_choice import ModelChoice
13
+ from autoPyTorch .utils .hyperparameter_search_space_update import HyperparameterSearchSpaceUpdates
13
14
14
15
15
16
class TraditionalTabularClassificationPipeline (ClassifierMixin , BasePipeline ):
@@ -19,7 +20,19 @@ class TraditionalTabularClassificationPipeline(ClassifierMixin, BasePipeline):
19
20
Args:
20
21
config (Configuration)
21
22
The configuration to evaluate.
22
- random_state (Optional[RandomState): random_state is the random number generator
23
+ steps (Optional[List[Tuple[str, autoPyTorchChoice]]]): the list of steps that
24
+ build the pipeline. If provided, they won't be dynamically produced.
25
+ include (Optional[Dict[str, Any]]): Allows the caller to specify which configurations
26
+ to honor during the creation of the configuration space.
27
+ exclude (Optional[Dict[str, Any]]): Allows the caller to specify which configurations
28
+ to avoid during the creation of the configuration space.
29
+ random_state (np.random.RandomState): allows to produce reproducible results by
30
+ setting a seed for randomized settings
31
+ init_params (Optional[Dict[str, Any]])
32
+ search_space_updates (Optional[HyperparameterSearchSpaceUpdates]):
33
+ search space updates that can be used to modify the search
34
+ space of particular components or choice modules of the pipeline
35
+
23
36
24
37
Attributes:
25
38
"""
@@ -32,11 +45,12 @@ def __init__(
32
45
include : Optional [Dict [str , Any ]] = None ,
33
46
exclude : Optional [Dict [str , Any ]] = None ,
34
47
random_state : Optional [np .random .RandomState ] = None ,
35
- init_params : Optional [Dict [str , Any ]] = None
48
+ init_params : Optional [Dict [str , Any ]] = None ,
49
+ search_space_updates : Optional [HyperparameterSearchSpaceUpdates ] = None
36
50
):
37
51
super ().__init__ (
38
52
config , steps , dataset_properties , include , exclude ,
39
- random_state , init_params )
53
+ random_state , init_params , search_space_updates )
40
54
41
55
def predict (self , X : np .ndarray , batch_size : Optional [int ] = None
42
56
) -> np .ndarray :
0 commit comments