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

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.

主站蜘蛛池模板: 磴口县| 塔城市| 济阳县| 邹平县| 莒南县| 台州市| 宁蒗| 南岸区| 海丰县| 当阳市| 泰顺县| 台湾省| 龙川县| 八宿县| 平潭县| 龙州县| 灵石县| 庆云县| 阿拉尔市| 安达市| 宁南县| 贵定县| 和林格尔县| 顺义区| 康平县| 绥宁县| 灵山县| 修文县| 平阴县| 扬中市| 呼玛县| 三江| 黔东| 晋宁县| 临沧市| 通化市| 陵川县| 安西县| 贺州市| 肇东市| 牟定县|