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

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.

主站蜘蛛池模板: 手游| 金坛市| 始兴县| 玛沁县| 佛冈县| 仙桃市| 漳平市| 南投市| 喜德县| 乐安县| 长海县| 库车县| 赤峰市| 日土县| 新乡市| 武汉市| 阿尔山市| 贡山| 新乐市| 阳江市| 宣化县| 南乐县| 平乐县| 德令哈市| 闵行区| 昌邑市| 临高县| 改则县| 石泉县| 水富县| 龙岩市| 青岛市| 吉首市| 临湘市| 犍为县| 永福县| 五河县| 罗山县| 江油市| 桂平市| 普陀区|