- 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.
推薦閱讀
- 極簡算法史:從數(shù)學到機器的故事
- 數(shù)據(jù)庫原理及應用(Access版)第3版
- ReSharper Essentials
- Arduino by Example
- Mastering QGIS
- Learn Scala Programming
- INSTANT Django 1.5 Application Development Starter
- Mastering AWS Security
- Oracle Data Guard 11gR2 Administration Beginner's Guide
- Java EE 8 and Angular
- Mastering Unreal Engine 4.X
- 數(shù)據(jù)庫技術(shù)及應用教程上機指導與習題(第2版)
- Office VBA開發(fā)經(jīng)典:中級進階卷
- Swift從入門到精通 (移動開發(fā)叢書)
- Microsoft Azure Security