whylogs.core.metrics.condition_count_metric#

Module Contents#

Classes#

Functions#

relation(→ Callable[[Any], bool])

and_relations(→ Callable[[Any], bool])

or_relations(→ Callable[[Any], bool])

not_relation(→ Callable[[Any], bool])

Attributes#

whylogs.core.metrics.condition_count_metric.logger#
whylogs.core.metrics.condition_count_metric.Relation#
whylogs.core.metrics.condition_count_metric.relation(op: Relation, value: Union[str, int, float]) Callable[[Any], bool]#
Parameters
Return type

Callable[[Any], bool]

whylogs.core.metrics.condition_count_metric.and_relations(left: Callable[[Any], bool], right: Callable[[Any], bool]) Callable[[Any], bool]#
Parameters
  • left (Callable[[Any], bool]) –

  • right (Callable[[Any], bool]) –

Return type

Callable[[Any], bool]

whylogs.core.metrics.condition_count_metric.or_relations(left: Callable[[Any], bool], right: Callable[[Any], bool]) Callable[[Any], bool]#
Parameters
  • left (Callable[[Any], bool]) –

  • right (Callable[[Any], bool]) –

Return type

Callable[[Any], bool]

whylogs.core.metrics.condition_count_metric.not_relation(relation: Callable[[Any], bool]) Callable[[Any], bool]#
Parameters

relation (Callable[[Any], bool]) –

Return type

Callable[[Any], bool]

class whylogs.core.metrics.condition_count_metric.Condition#
relation: Callable[[Any], bool]#
throw_on_failure: bool = False#
log_on_failure: bool = False#
actions: List[Callable[[str, str, Any], None]]#
class whylogs.core.metrics.condition_count_metric.ConditionCountConfig#

Bases: whylogs.core.metrics.metrics.MetricConfig

conditions: Dict[str, Condition]#
exclude_from_serialization: bool = False#
class whylogs.core.metrics.condition_count_metric.ConditionCountMetric#

Bases: whylogs.core.metrics.metrics.Metric

property exclude_from_serialization: bool#
Return type

bool

property namespace: str#
Return type

str

conditions: Dict[str, Condition]#
total: whylogs.core.metrics.metric_components.IntegralComponent#
matches: Dict[str, whylogs.core.metrics.metric_components.IntegralComponent]#
hide_from_serialization: bool = False#
merge(other: ConditionCountMetric) ConditionCountMetric#
Parameters

other (ConditionCountMetric) –

Return type

ConditionCountMetric

add_conditions(conditions: Dict[str, Condition]) None#
Parameters

conditions (Dict[str, Condition]) –

Return type

None

get_component_paths() List[str]#
Return type

List[str]

columnar_update(data: whylogs.core.preprocessing.PreprocessedColumn) whylogs.core.metrics.metrics.OperationResult#
Parameters

data (whylogs.core.preprocessing.PreprocessedColumn) –

Return type

whylogs.core.metrics.metrics.OperationResult

classmethod zero(config: Optional[whylogs.core.metrics.metrics.MetricConfig] = None) ConditionCountMetric#
Parameters

config (Optional[whylogs.core.metrics.metrics.MetricConfig]) –

Return type

ConditionCountMetric

to_protobuf() whylogs.core.proto.MetricMessage#
Return type

whylogs.core.proto.MetricMessage

to_summary_dict(cfg: Optional[whylogs.core.configs.SummaryConfig] = None) Dict[str, Any]#
Parameters

cfg (Optional[whylogs.core.configs.SummaryConfig]) –

Return type

Dict[str, Any]

classmethod from_protobuf(msg: whylogs.core.proto.MetricMessage) ConditionCountMetric#
Parameters

msg (whylogs.core.proto.MetricMessage) –

Return type

ConditionCountMetric