#
# 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 CrossValidationRetrieveResponse(APIObject):
    """
    Attributes
    ----------
    cv_scores:{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
         A dictionary `cvScores` with sub-dictionary keyed by `partition_id`, each `partition_id` is itself a dictionary keyed by `metric_name` where the value is the reading for that particular metric for the partition_id.
    """
    _converter = t.Dict(
        {
            t.Key("cv_scores"):  t.Any(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        cv_scores,
    ):
        self.cv_scores = cv_scores

    def __repr__(self):
        return (
            "CrossValidationRetrieveResponse("
            "cv_scores={0.cv_scores}, "
        ).format(self)
