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

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.

主站蜘蛛池模板: 荥经县| 白山市| 哈密市| 定州市| 东港市| 奉化市| 南投市| 昭通市| 黄陵县| 重庆市| 黔江区| 武强县| 越西县| 蒲江县| 宁城县| 墨玉县| 克东县| 青阳县| 永康市| 兰州市| 台中县| 汾阳市| 望都县| 鄂托克前旗| 酒泉市| 保德县| 塔河县| 琼海市| 万盛区| 博白县| 纳雍县| 香港 | 墨竹工卡县| 牟定县| 尖扎县| 盐池县| 肃宁县| 宜兴市| 泗阳县| 灌云县| 志丹县|