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

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.

主站蜘蛛池模板: 中方县| 无棣县| 普兰店市| 普兰店市| 东城区| 获嘉县| 青阳县| 安徽省| 滦平县| 乐昌市| 尚义县| 阳春市| 和硕县| 湖口县| 合作市| 宣恩县| 安新县| 无为县| 敦煌市| 义乌市| 乌苏市| 大庆市| 宁南县| 东城区| 贡山| 嘉定区| 荥经县| 都昌县| 田阳县| 萨迦县| 沙坪坝区| 肥乡县| 林甸县| 鄂尔多斯市| 胶州市| 安岳县| 江口县| 仁寿县| 宁南县| 芜湖市| 碌曲县|