Skip to main content

Table of Contents

Statistical functions used by whylogs

is_discrete

is_discrete(num_records: int, cardinality: int, p=0.15)

Estimate whether a feature is discrete given the number of records observed and the cardinality (number of unique values)

The default assumption is that features are not discrete.

Parameters

num_records : int The number of observed records cardinality : int Number of unique observed values

Returns

discrete : bool Whether the feature is discrete

Prefooter Illustration Mobile
Run AI With Certainty
Get started for free
Prefooter Illustration