A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mlflow.org/docs/latest/python_api/../_modules/mlflow/entities/logged_model_tag.html below:

mlflow.entities.logged_model_tag

Source code for mlflow.entities.logged_model_tag
from mlflow.entities._mlflow_object import _MlflowObject
from mlflow.protos import service_pb2 as pb2


[docs]class LoggedModelTag(_MlflowObject):
    """Tag object associated with a Model."""

    def __init__(self, key, value):
        self._key = key
        self._value = value

    def __eq__(self, other):
        if type(other) is type(self):
            # TODO deep equality here?
            return self.__dict__ == other.__dict__
        return False

    @property
    def key(self):
        """String name of the tag."""
        return self._key

    @property
    def value(self):
        """String value of the tag."""
        return self._value

[docs]    def to_proto(self):
        return pb2.LoggedModelTag(key=self._key, value=self._value)

[docs]    @classmethod
    def from_proto(cls, proto):
        return cls(key=proto.key, value=proto.value)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4