官术网_书友最值得收藏!

The RestaurantPrediction class

The RestaurantPrediction class contains the output properties that will come out of our model runs. Depending on the algorithm used, the output class, as you will find in future chapters, will contain many more properties:

using Microsoft.ML.Data;

namespace chapter02.ML.Objects
{
public class RestaurantPrediction
{
[ColumnName("PredictedLabel")]
public bool Prediction { get; set; }

public float Probability { get; set; }

public float Score { get; set; }
}
}

Akin to the RestaurantFeedback Label property, the Prediction property contains the overall result of positive or negative feedback. The Probability property contains the confidence of our model of that decision. The Score property is used for the evaluation of our model.

主站蜘蛛池模板: 桐庐县| 平山县| 安溪县| 稻城县| 二连浩特市| 岗巴县| 区。| 吉安市| 龙岩市| 重庆市| 高唐县| 长丰县| 昌邑市| 科技| 六盘水市| 全南县| 梁平县| 潮州市| 宽城| 桐梓县| 龙州县| 色达县| 军事| 稷山县| 扎鲁特旗| 托克逊县| 星座| 定结县| 昆明市| 大丰市| 绍兴市| 新竹县| 临澧县| 乌兰浩特市| 长治县| 永兴县| 民县| 黑水县| 延长县| 宁国市| 芒康县|