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

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.

主站蜘蛛池模板: 阿拉善右旗| 英超| 莆田市| 大悟县| 临桂县| 新化县| 麻江县| 英德市| 元氏县| 阿巴嘎旗| 永兴县| 富源县| 安徽省| 远安县| 鄂托克前旗| 阿克陶县| 驻马店市| 紫云| 沅陵县| 芒康县| 德清县| 阿克苏市| 抚顺市| 黄陵县| 屏山县| 夹江县| 丹寨县| 湖南省| 综艺| 宣城市| 肥乡县| 南川市| 宁国市| 花垣县| 泾源县| 延庆县| 西藏| 镇宁| 清水县| 安国市| 五台县|