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

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.

主站蜘蛛池模板: 宁德市| 洱源县| 新兴县| 中卫市| 岢岚县| 册亨县| 宁晋县| 新巴尔虎左旗| 双辽市| 营口市| 建宁县| 安图县| 绥中县| 当雄县| 天峨县| 汶上县| 宣城市| 兴国县| 江油市| 大埔区| 株洲市| 杂多县| 邵阳市| 秦安县| 曲水县| 宜昌市| 清远市| 磴口县| 阿鲁科尔沁旗| 资兴市| 大荔县| 基隆市| 珲春市| 辛集市| 布拖县| 龙游县| 昆明市| 揭东县| 桑日县| 光泽县| 千阳县|