/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about the metric for a candidate produced by an AutoML job. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MetricDatum implements Serializable, Cloneable, StructuredPojo { /** ** The name of the metric. *
*/ private String metricName; /** ** The value of the metric. *
*/ private Float value; /** ** The dataset split from which the AutoML job produced the metric. *
*/ private String set; /** ** The name of the standard metric. *
*
* For definitions of the standard metrics, see
* Autopilot candidate metrics
.
*
* The name of the metric. *
* * @param metricName * The name of the metric. * @see AutoMLMetricEnum */ public void setMetricName(String metricName) { this.metricName = metricName; } /** ** The name of the metric. *
* * @return The name of the metric. * @see AutoMLMetricEnum */ public String getMetricName() { return this.metricName; } /** ** The name of the metric. *
* * @param metricName * The name of the metric. * @return Returns a reference to this object so that method calls can be chained together. * @see AutoMLMetricEnum */ public MetricDatum withMetricName(String metricName) { setMetricName(metricName); return this; } /** ** The name of the metric. *
* * @param metricName * The name of the metric. * @return Returns a reference to this object so that method calls can be chained together. * @see AutoMLMetricEnum */ public MetricDatum withMetricName(AutoMLMetricEnum metricName) { this.metricName = metricName.toString(); return this; } /** ** The value of the metric. *
* * @param value * The value of the metric. */ public void setValue(Float value) { this.value = value; } /** ** The value of the metric. *
* * @return The value of the metric. */ public Float getValue() { return this.value; } /** ** The value of the metric. *
* * @param value * The value of the metric. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricDatum withValue(Float value) { setValue(value); return this; } /** ** The dataset split from which the AutoML job produced the metric. *
* * @param set * The dataset split from which the AutoML job produced the metric. * @see MetricSetSource */ public void setSet(String set) { this.set = set; } /** ** The dataset split from which the AutoML job produced the metric. *
* * @return The dataset split from which the AutoML job produced the metric. * @see MetricSetSource */ public String getSet() { return this.set; } /** ** The dataset split from which the AutoML job produced the metric. *
* * @param set * The dataset split from which the AutoML job produced the metric. * @return Returns a reference to this object so that method calls can be chained together. * @see MetricSetSource */ public MetricDatum withSet(String set) { setSet(set); return this; } /** ** The dataset split from which the AutoML job produced the metric. *
* * @param set * The dataset split from which the AutoML job produced the metric. * @return Returns a reference to this object so that method calls can be chained together. * @see MetricSetSource */ public MetricDatum withSet(MetricSetSource set) { this.set = set.toString(); return this; } /** ** The name of the standard metric. *
*
* For definitions of the standard metrics, see
* Autopilot candidate metrics
.
*
* For definitions of the standard metrics, see Autopilot candidate metrics
.
*
* The name of the standard metric. *
*
* For definitions of the standard metrics, see
* Autopilot candidate metrics
.
*
* For definitions of the standard metrics, see Autopilot candidate metrics
.
*
* The name of the standard metric. *
*
* For definitions of the standard metrics, see
* Autopilot candidate metrics
.
*
* For definitions of the standard metrics, see Autopilot candidate metrics
.
*
* The name of the standard metric. *
*
* For definitions of the standard metrics, see
* Autopilot candidate metrics
.
*
* For definitions of the standard metrics, see Autopilot candidate metrics
.
*