baybe.recommenders.pure.bayesian.botorch.hybrid.recommend_hybrid_with_subsets¶
- baybe.recommenders.pure.bayesian.botorch.hybrid.recommend_hybrid_with_subsets(recommender: BotorchRecommender, searchspace: SearchSpace, candidates_exp: DataFrame, batch_size: int)[source]¶
Recommend from a hybrid space with subset constraints.
Uses
SearchSpace.subsets()to enumerate the Cartesian product of discrete and continuous subset configurations, capped atmax_n_subsetstotal. In purely discrete search spaces, subsets with fewer candidates thanbatch_sizeare pre-filtered.- Parameters:
recommender (
BotorchRecommender) – The recommender instance.searchspace (
SearchSpace) – The search space in which the recommendations should be made.candidates_exp (
DataFrame) – The experimental representation of the candidates of the discrete subspace.batch_size (
int) – The size of the calculated batch.
- Return type:
DataFrame- Returns:
The recommended points.