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

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.

主站蜘蛛池模板: 洪泽县| 依兰县| 清流县| 金乡县| 行唐县| 民丰县| 宜阳县| 鄄城县| 伊吾县| 三明市| 兴文县| 仁布县| 巴塘县| 额济纳旗| 门源| 大余县| 阆中市| 买车| 攀枝花市| 壶关县| 邹城市| 调兵山市| 建德市| 沙田区| 通江县| 富顺县| 澎湖县| 岑巩县| 祁东县| 石景山区| 峨眉山市| 长丰县| 和政县| 临夏县| 通河县| 靖宇县| 弋阳县| 奇台县| 墨江| 永和县| 金华市|