#
# 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
from datarobot.models.full_api.generated.model.model_residuals_chart_data import ModelResidualsChartData

class ModelResidualsSource(APIObject):
    """
    Attributes
    ----------
    cross_validation:ModelResidualsChartData [optional]
         
    holdout:ModelResidualsChartData [optional]
         
    validation:ModelResidualsChartData [optional]
         
    """
    _converter = t.Dict(
        {
            t.Key("cross_validation", optional=True):  t.Any(),
            t.Key("holdout", optional=True):  t.Any(),
            t.Key("validation", optional=True):  t.Any(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        cross_validation=None,
        holdout=None,
        validation=None,
    ):
        self.cross_validation = cross_validation
        self.holdout = holdout
        self.validation = validation

    def __repr__(self):
        return (
            "ModelResidualsSource("
            "cross_validation={0.cross_validation}, "
            "holdout={0.holdout}, "
            "validation={0.validation}, "
        ).format(self)
