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

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.

主站蜘蛛池模板: 平乐县| 垫江县| 巴中市| 新巴尔虎左旗| 睢宁县| 名山县| 临汾市| 庆安县| 千阳县| 荥阳市| 雅江县| 饶阳县| 颍上县| 罗田县| 新绛县| 荥经县| 通辽市| 阳江市| 武乡县| 沈丘县| 金塔县| 崇仁县| 西吉县| 秦安县| 故城县| 九台市| 台前县| 灌云县| 渝中区| 泾阳县| 二连浩特市| 榆中县| 威信县| 镇安县| 高要市| 通城县| 鹤岗市| 通许县| 达拉特旗| 平定县| 贺兰县|