HyperParameterSampling Class
Abstract base class for all hyperparameter sampling algorithms.
This class encapsulates the hyperparameter space, the sampling method, and additional properties for derived sampling classes: BayesianParameterSampling, GridParameterSampling, and RandomParameterSampling.
Initialize HyperParameterSampling.
- Inheritance
-
HyperParameterSampling
Constructor
HyperParameterSampling(sampling_method_name, parameter_space, properties=None, supported_distributions=None, distributions_validators=None)
Parameters
A list of the supported distribution methods. The default None indicates all distributions are supported as described in module parameter_expressions.
A list of the supported distribution methods. The default of None indicates all distributions are supported as described in module parameter_expressions.
- distributions_validators
- dict
A dictionary that maps a distribution name to a function that validates if it is a valid distribution for the sampling method used. The default None indicates that no particular validators are needed.
Methods
to_json |
Return JSON representing the hyperparameter sampling object. |
to_json
Return JSON representing the hyperparameter sampling object.
to_json()
Returns
JSON formatted sampling policy.
Return type
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for