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

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.

主站蜘蛛池模板: 平遥县| 漳平市| 枝江市| 重庆市| 南雄市| 巴里| 香格里拉县| 繁峙县| 卢氏县| 阿拉善左旗| 浮山县| 家居| 巴楚县| 平乡县| 德格县| 东兰县| 英德市| 乐都县| 临潭县| 彩票| 广安市| 炉霍县| 宝丰县| 炉霍县| 抚松县| 安仁县| 衡水市| 大竹县| 镇赉县| 吴江市| 通辽市| 昌图县| 全椒县| 方山县| 云阳县| 马鞍山市| 施秉县| 天门市| 思茅市| 鱼台县| 安陆市|