src/whylogs/core/statistics/datatypes/stringtracker.py
def from_protobuf(message: StringsMessage):
        """
        Load from a protobuf message

        Returns
        -------
        string_tracker : StringTracker
        """
        theta = None
        if message.theta is not None and len(message.theta) > 0:
            theta = ThetaSketch.deserialize(message.theta)
        elif message.compact_theta is not None and len(message.compact_theta) > 0:
            theta = ThetaSketch.deserialize(message.compact_theta)

        return StringTracker(
            count=message.count,
            items=dsketch.deserialize_frequent_strings_sketch(message.items),
            theta_sketch=theta,
        )

        Load from a protobuf message

        Returns
        -------
        string_tracker : StringTracker
        
Load from a protobuf message
Returns


Load from a protobuf message Returns
def from_protobuf(message: StringsMessage):
        theta = None
        if message.theta is not None and len(message.theta) > 0:
            theta = ThetaSketch.deserialize(message.theta)
        elif message.compact_theta is not None and len(message.compact_theta) > 0:
            theta = ThetaSketch.deserialize(message.compact_theta)
        return StringTracker(
            count=message.count,
            items=dsketch.deserialize_frequent_strings_sketch(message.items),
            theta_sketch=theta,
        )
def from_protobuf ( message : StringsMessage ) : theta = None if message . theta is not None and len ( message . theta ) > 0 : theta = ThetaSketch . deserialize ( message . theta ) elif message . compact_theta is not None and len ( message . compact_theta ) > 0 : theta = ThetaSketch . deserialize ( message . compact_theta ) return StringTracker ( count = message . count , items = dsketch . deserialize_frequent_strings_sketch ( message . items ) , theta_sketch = theta , )
Load from a protobuf message
Returns
Load from a protobuf message Returns
"""
        Load from a protobuf message

        Returns
        -------
        string_tracker : StringTracker
        """
message
StringsMessage