- 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.
推薦閱讀
- Python語言程序設(shè)計
- 算法精粹:經(jīng)典計算機科學(xué)問題的Python實現(xiàn)
- 精通API架構(gòu):設(shè)計、運維與演進(jìn)
- Learn WebAssembly
- INSTANT Mercurial SCM Essentials How-to
- Mastering ServiceNow(Second Edition)
- KnockoutJS Starter
- Hands-On Natural Language Processing with Python
- Jupyter數(shù)據(jù)科學(xué)實戰(zhàn)
- Flutter跨平臺開發(fā)入門與實戰(zhàn)
- Windows Phone 7.5:Building Location-aware Applications
- SQL Server 入門很輕松(微課超值版)
- Python商務(wù)數(shù)據(jù)分析(微課版)
- Java程序設(shè)計實用教程(第2版)
- After Effects CC案例設(shè)計與經(jīng)典插件(視頻教學(xué)版)