pdstools.infinity.resources.prediction_studio.v24_2.champion_challenger._async¶
Classes¶
The |
Module Contents¶
- class AsyncChampionChallenger(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.AsyncChampionChallengerThe
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
- async list_available_models_to_add(return_df: bool = False) pdstools.infinity.internal._pagination.AsyncPaginatedList | polars.DataFrame¶
Fetches a list of models eligible to be challengers.
- Parameters:
return_df (bool, optional) – Determines the format of the returned data: a DataFrame if True, otherwise an async list of model instances. Defaults to False.
- Returns:
An async list of model instances or a DataFrame of models.
- Return type:
AsyncPaginatedList[AsyncModel] or pl.DataFrame