skactiveml.utils.check_budget_manager#

skactiveml.utils.check_budget_manager(budget, budget_manager, default_budget_manager_class, default_budget_manager_dict=None)[source]#

Validate if budget_manager is a budget manager class and create a copy budget_manager_.

Parameters
budgetfloat, default=None

Specifies the ratio of samples which are allowed to be queried, with 0 <= budget <= 1. See Also BudgetManager.

budget_managerBudgetManager, default=None

Budget manager to be checked. If budget_manager is None, a new budget manager using the class default_budget_manager_class is created using the default_budget_manager_dict as parameters.

default_budget_manager_classBudgetManager.__class__

Fallback class for creation of a budget manger (cf. description of budget_manager).

default_budget_manager_dictdict, default=None

Fallback parameters for the creation of a budget manger (cf. description of budget_manager).

Returns
budget_manager_BudgetManager

Checked or newly created budget manager object.