#
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
#
# DataRobot, Inc.
#
# This is proprietary source code of DataRobot, Inc. and its
# affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
"""
Autogenerated DataRobot python client file.  Please don't modify.
"""

import trafaret as t
from datarobot.models.api_object import APIObject

class ModelUpdate(APIObject):
    """
    Attributes
    ----------
    is_starred:bool [optional]
         Mark model either as starred or unstarred.. 
    prediction_threshold:float [optional]
         Threshold used for binary classification in predictions. Default value is 0.5.. 
    """
    _converter = t.Dict(
        {
            t.Key("is_starred", optional=True):  t.Bool(),
            t.Key("prediction_threshold", optional=True):  t.Float(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        is_starred=None,
        prediction_threshold=None,
    ):
        self.is_starred = is_starred
        self.prediction_threshold = prediction_threshold

    def __repr__(self):
        return (
            "ModelUpdate("
            "is_starred={0.is_starred}, "
            "prediction_threshold={0.prediction_threshold}, "
        ).format(self)
