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

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.

主站蜘蛛池模板: 都昌县| 开江县| 色达县| 汉川市| 措勤县| 密山市| 齐河县| 江口县| 克什克腾旗| 南木林县| 讷河市| 岳池县| 平陆县| 明光市| 金堂县| 黔西县| 临泽县| 潼关县| 普洱| 同心县| 平乡县| 巨鹿县| 同心县| 陆丰市| 元阳县| 都匀市| 故城县| 德格县| 阜阳市| 海原县| 阳江市| 航空| 汝城县| 麻阳| 怀集县| 巴马| 舒城县| 松潘县| 太原市| 嘉定区| 庄河市|