abacusai.feature_distribution

Module Contents

Classes

FeatureDistribution

For a single feature, how it has changed in the training data versus some specified window

class abacusai.feature_distribution.FeatureDistribution(client, type=None, trainingDistribution=None, predictionDistribution=None, numericalTrainingDistribution=None, numericalPredictionDistribution=None, trainingStatistics=None, predictionStatistics=None)

Bases: abacusai.return_class.AbstractApiClass

For a single feature, how it has changed in the training data versus some specified window

Parameters:
  • client (ApiClient) – An authenticated API Client instance

  • type (str) – Data type of values in each distribution, typically ‘categorical’ or ‘numerical’.

  • trainingDistribution (dict) – A dict describing the range of values in the training distribution.

  • predictionDistribution (dict) – A dict describing the range of values in the specified window.

  • numericalTrainingDistribution (dict) – A dict describing the summary statistics of the numerical training distribution.

  • numericalPredictionDistribution (dict) – A dict describing the summary statistics of the numerical prediction distribution.

  • trainingStatistics (dict) – A dict describing summary statistics of values in the training distribution.

  • predictionStatistics (dict) – A dict describing summary statistics of values in the specified window.

__repr__()

Return repr(self).

to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict