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

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.

主站蜘蛛池模板: 略阳县| 固镇县| 辽中县| 溧水县| 博乐市| 盐津县| 德钦县| 瓦房店市| 陵水| 铁岭县| 黄冈市| 新源县| 林芝县| 驻马店市| 勃利县| 左云县| 南安市| 浑源县| 滨州市| 碌曲县| 扎囊县| 轮台县| 漠河县| 东阿县| 固安县| 大英县| 新平| 新蔡县| 白山市| 台东县| 娄烦县| 肥城市| 深州市| 乾安县| 金阳县| 天津市| 宝鸡市| 贞丰县| 和政县| 长乐市| 濮阳县|