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

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.

主站蜘蛛池模板: 务川| 正宁县| 潞城市| 桐柏县| 武清区| 榕江县| 西林县| 赤峰市| 桃源县| 永靖县| 邛崃市| 当阳市| 静海县| 如皋市| 荥经县| 南乐县| 罗城| 杭锦旗| 贵南县| 徐闻县| 揭东县| 会同县| 资兴市| 巴林左旗| 耒阳市| 罗源县| 云霄县| 安多县| 水城县| 塘沽区| 淮阳县| 门源| 玉林市| 广宗县| 三台县| 若羌县| 麦盖提县| 奉化市| 年辖:市辖区| 电白县| 华宁县|