lale.search.GridSearchCV module¶
-
lale.search.GridSearchCV.HPValuetoGSValue(key: str, hp: lale.search.search_space.SearchSpace, num_samples: Optional[int] = None) → List[Any][source]¶
-
lale.search.GridSearchCV.LaleGridSearchCV(op: PlannedOperator, lale_num_samples: Optional[int] = None, lale_num_grids: Optional[float] = None, lale_pgo: Optional[Dict[str, Dict[str, Dict[str, int]]]] = None, **kwargs)[source]¶ - Parameters
op (The lale PlannedOperator) –
lale_num_samples (integer, optional) – If set, will limit the number of samples for each distribution
lale_num_grids (integer or float, optional) – if set to an integer => 1, it will determine how many parameter grids will be returned (at most) if set to an float between 0 and 1, it will determine what fraction should be returned note that setting it to 1 is treated as in integer. To return all results, use None
-
lale.search.GridSearchCV.SearchSpaceGridstoGSGrids(hp_grids: List[Dict[str, lale.search.search_space.SearchSpace]], num_samples: Optional[int] = None) → List[Dict[str, List[Any]]][source]¶
-
lale.search.GridSearchCV.SearchSpaceGridtoGSGrid(hp: Dict[str, lale.search.search_space.SearchSpace], num_samples: Optional[int] = None) → Dict[str, List[Any]][source]¶
-
lale.search.GridSearchCV.SearchSpaceNumberToGSValues(key: str, hp: lale.search.search_space.SearchSpaceNumber, num_samples: Optional[int] = None) → List[Any][source]¶ Returns either a list of values intended to be sampled uniformly
-
lale.search.GridSearchCV.get_grid_search_parameter_grids(op: PlannedOperator, num_samples: Optional[int] = None, num_grids: Optional[float] = None, pgo: Optional[Dict[str, Dict[str, Dict[str, int]]]] = None) → List[Dict[str, List[Any]]][source]¶ Top level function: given a lale operator, returns a list of parameter grids suitable for passing to GridSearchCV. Note that you will need to wrap the lale operator for sklearn compatibility to call GridSearchCV directly. The lale GridSearchCV wrapper takes care of that for you
-
lale.search.GridSearchCV.get_parameter_grids(op: PlannedOperator, num_samples: Optional[int] = None, num_grids: Optional[float] = None, pgo: Optional[Dict[str, Dict[str, Dict[str, int]]]] = None)[source]¶ - Parameters
op (The lale PlannedOperator) –
lale_num_samples (integer, optional) – If set, will limit the number of samples for each distribution
lale_num_grids (integer or float, optional) – if set to an integer => 1, it will determine how many parameter grids will be returned (at most) if set to an float between 0 and 1, it will determine what fraction should be returned note that setting it to 1 is treated as in integer. To return all results, use None