pdstools.infinity.resources.prediction_studio.v24_2.champion_challenger._sync¶
Classes¶
The |
Module Contents¶
- class ChampionChallenger(client, prediction_id: str, active_model, cc_id: str | None = None, context: str | None = None, category: str | None = None, challenger_model=None, champion_percentage: float | None = None, model_objective: str | None = None)¶
Bases:
pdstools.infinity.resources.prediction_studio.v24_2.champion_challenger._mixin._ChampionChallengerV24_2Mixin,pdstools.infinity.resources.prediction_studio.base.ChampionChallengerThe
ChampionChallengerclass manages champion and challenger models within a prediction context. It provides functionalities for:Refreshing champion challenger data
Deleting challenger models
Promoting challenger models
Updating challenger response percentages
Adding new models
Cloning an ADM active model
Adding/removing predictors
- Parameters:
- client¶
The client used to interact with the API.
- Type:
Client
- champion_percentage¶
The percentage of responses attributed to the champion model.
- Type:
float | None
- list_available_models_to_add(return_df: bool = False) pdstools.infinity.internal._pagination.PaginatedList | polars.DataFrame¶
Fetches a list of models eligible to be challengers.
Queries for models that can be added as challengers to the current prediction for the current active model. Offers the option to return the results in a DataFrame format for easier data handling.
- Parameters:
return_df (bool, optional) – Determines the format of the returned data: a DataFrame if True, otherwise a list of model instances. Defaults to False.
- Returns:
A list of model instances or a DataFrame of models, based on the
return_dfparameter choice.- Return type:
PaginatedList[Model] or pl.DataFrame