/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the machinelearning-2014-12-12.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.MachineLearning.Model { /// /// The output from a Predict operation: /// /// /// public partial class Prediction { private Dictionary _details = new Dictionary(); private string _predictedLabel; private Dictionary _predictedScores = new Dictionary(); private float? _predictedValue; /// /// Gets and sets the property Details. /// public Dictionary Details { get { return this._details; } set { this._details = value; } } // Check to see if Details property is set internal bool IsSetDetails() { return this._details != null && this._details.Count > 0; } /// /// Gets and sets the property PredictedLabel. /// /// The prediction label for either a BINARY or MULTICLASS MLModel. /// /// [AWSProperty(Min=1)] public string PredictedLabel { get { return this._predictedLabel; } set { this._predictedLabel = value; } } // Check to see if PredictedLabel property is set internal bool IsSetPredictedLabel() { return this._predictedLabel != null; } /// /// Gets and sets the property PredictedScores. /// public Dictionary PredictedScores { get { return this._predictedScores; } set { this._predictedScores = value; } } // Check to see if PredictedScores property is set internal bool IsSetPredictedScores() { return this._predictedScores != null && this._predictedScores.Count > 0; } /// /// Gets and sets the property PredictedValue. /// /// The prediction value for REGRESSION MLModel. /// /// public float PredictedValue { get { return this._predictedValue.GetValueOrDefault(); } set { this._predictedValue = value; } } // Check to see if PredictedValue property is set internal bool IsSetPredictedValue() { return this._predictedValue.HasValue; } } }