PAMClusteringRecommender¶
- class baybe.recommenders.pure.nonpredictive.clustering.PAMClusteringRecommender[source]¶
Bases:
SKLearnClusteringRecommender
Partitioning Around Medoids (PAM) clustering recommender.
Public methods
__init__
([model_params, ...])Method generated by attrs for class PAMClusteringRecommender.
recommend
(searchspace[, batch_size, ...])Recommend a batch of points from the given search space.
Public attributes and properties
Allow to make recommendations that were measured previously.
Allow to make recommendations that were already recommended earlier.
Class variable reflecting the search space compatibility.
Class variable describing the name of the clustering parameter.
The parameters for the used model.
- __init__(model_params: dict = NOTHING, *, allow_repeated_recommendations: bool = False, allow_recommending_already_measured: bool = True)¶
Method generated by attrs for class PAMClusteringRecommender.
For details on the parameters, see Public attributes and properties.
- recommend(searchspace: SearchSpace, batch_size: int = 1, train_x: DataFrame | None = None, train_y: DataFrame | None = None)¶
Recommend a batch of points from the given search space.
- Parameters:
- Return type:
- Returns:
A dataframe containing the recommendations as individual rows.
- allow_recommending_already_measured: bool¶
Allow to make recommendations that were measured previously. This only has an influence in discrete search spaces.
- allow_repeated_recommendations: bool¶
Allow to make recommendations that were already recommended earlier. This only has an influence in discrete search spaces.
- compatibility: ClassVar[SearchSpaceType] = 'DISCRETE'¶
Class variable reflecting the search space compatibility.