Skip to main content

decentriq_platform.media.audience_statistics_result

Classes

LalAudienceStatistics

LalAudienceStatistics(
auc: float,
fpr: List[float],
tpr: List[float],
)

Class representing the statistics of a given lookalike audience.

Initialize an instance of LalAudienceStatistics.

Parameters:

  • auc: The area under the ROC curve
  • fpr: The list of false positive rates (in order of decreasing discrimination threshold)
  • tpr: The list of true positive rates (in order of decreasing discrimination threshold)

Static methods

from_dict

def from_dict(
d: Dict[str, Any],
)> typing_extensions.Self

Create an instance from a dictionary.

Parameters:

  • d: Dictionary containing the statistics data

Returns:

  • New LalAudienceStatistics instance

model_dump

def model_dump(
self,
)> Dict[str, Any]

Convert the instance to a dictionary following pydantic model_dump convention.

Returns:

  • Dictionary representation of the statistics

model_dump_json

def model_dump_json(
self,
indent: int = None,
)> str

Convert the instance to a JSON string following pydantic model_dump_json convention.

Parameters:

  • indent: Number of spaces for indentation in the JSON output

Returns:

  • JSON string representation of the statistics