Tophat prior
smac.model.gaussian_process.priors.tophat_prior
#
SoftTopHatPrior
#
Bases: AbstractPrior
Soft Tophat prior as it used in the original spearmint code.
| PARAMETER | DESCRIPTION |
|---|---|
lower_bound
|
Lower bound of the prior. In original scale.
TYPE:
|
upper_bound
|
Upper bound of the prior. In original scale.
TYPE:
|
exponent
|
Exponent of the prior.
TYPE:
|
seed
|
TYPE:
|
Source code in smac/model/gaussian_process/priors/tophat_prior.py
sample_from_prior
#
Returns n_samples from the prior. All samples are on a log scale. This method calls
self._sample_from_prior and applies a log transformation to the obtained values.
| PARAMETER | DESCRIPTION |
|---|---|
n_samples
|
The number of samples that will be drawn.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
samples
|
TYPE:
|
Source code in smac/model/gaussian_process/priors/abstract_prior.py
TophatPrior
#
Bases: AbstractPrior
Tophat prior as it used in the original spearmint code.
| PARAMETER | DESCRIPTION |
|---|---|
lower_bound
|
Lower bound of the prior. In original scale.
TYPE:
|
upper_bound
|
Upper bound of the prior. In original scale.
TYPE:
|
seed
|
TYPE:
|
Source code in smac/model/gaussian_process/priors/tophat_prior.py
get_log_probability
#
Returns the log probability of theta. This method exponentiates theta and calls self._get_log_probability.
Warning
Theta must be on a log scale!
| PARAMETER | DESCRIPTION |
|---|---|
theta
|
Hyperparameter configuration in log space.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
The log probability of theta |
Source code in smac/model/gaussian_process/priors/abstract_prior.py
sample_from_prior
#
Returns n_samples from the prior. All samples are on a log scale. This method calls
self._sample_from_prior and applies a log transformation to the obtained values.
| PARAMETER | DESCRIPTION |
|---|---|
n_samples
|
The number of samples that will be drawn.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
samples
|
TYPE:
|