Skip to content

Probabilistic API ​

API reference for the 5 classes of opt.probabilistic. This page is generated from the source; see the algorithm pages for formulations and references.

Imports ​

python
from opt.probabilistic import (
    AdaptiveMetropolisOptimizer,
    BayesianOptimizer,
    LDAnalysis,
    SequentialMonteCarloOptimizer,
    ParzenTreeEstimator,
)

Common interface ​

Every class takes the objective func, the search-space lower_bound, upper_bound and dim, usually max_iter and seed, and implements search() -> tuple[np.ndarray, float]. See AbstractOptimizer.

Classes ​

ClassAlgorithmAdditional parameters
AdaptiveMetropolisOptimizerAdaptive Metropolis Algorithminitial_temp=10.0, final_temp=0.01, adaptation_start=100
BayesianOptimizerBayesian Optimizationn_initial=10, xi=0.01
LDAnalysisLinear Discriminant Analysis Optimizernumber_of_labels=20, unique_classes=2
SequentialMonteCarloOptimizerSequential Monte Carlo Optimizationinitial_temp=10.0, final_temp=0.1
ParzenTreeEstimatorTree-structured Parzen Estimatorgamma=0.15, bandwidth=0.2, n_samples=None, selection_strategy='difference'

Released under the MIT License.