Table of Contents
TODO:
- Implement histograms
NumberTracker Objects
class NumberTracker()
Class to track statistics for numeric data.
Parameters
variance Tracker to follow the variance floats Float tracker for tracking all floats ints Integer tracker
Attributes
variance
See above
floats
See above
ints
See above
theta_sketch : whylabs.logs.core.statistics.thetasketch.ThetaSketch
Sketch which tracks approximate cardinality
track
| track(number)
Add a number to statistics tracking
Parameters
number : int, float A numeric value
to_protobuf
| to_protobuf()
Return the object serialized as a protobuf message
from_protobuf
| @staticmethod
| from_protobuf(message: NumbersMessage)
Load from a protobuf message
Returns
number_tracker : NumberTracker
to_summary
| to_summary()
Construct a NumberSummary
message
Returns
summary : NumberSummary Summary of the tracker statistics