- Hands-On Machine Learning with ML.NET
- Jarred Capellman
- 112字
- 2021-06-24 16:43:29
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.
推薦閱讀
- 精通Nginx(第2版)
- CMDB分步構(gòu)建指南
- 神經(jīng)網(wǎng)絡編程實戰(zhàn):Java語言實現(xiàn)(原書第2版)
- 零基礎學Java(第4版)
- Android系統(tǒng)級深入開發(fā)
- Android傳感器開發(fā)與智能設備案例實戰(zhàn)
- Arduino計算機視覺編程
- Illustrator CC平面設計實戰(zhàn)從入門到精通(視頻自學全彩版)
- C++編程兵書
- 單片機原理及應用技術(shù)
- R語言數(shù)據(jù)挖掘:實用項目解析
- 從零開始學UI:概念解析、實戰(zhàn)提高、突破規(guī)則
- Spark技術(shù)內(nèi)幕:深入解析Spark內(nèi)核架構(gòu)設計與實現(xiàn)原理
- JavaEE架構(gòu)與程序設計
- 例說FPGA:可直接用于工程項目的第一手經(jīng)驗