- 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.
推薦閱讀
- Getting Started with Gulp(Second Edition)
- iOS面試一戰(zhàn)到底
- Modular Programming with Python
- 程序員數(shù)學(xué):用Python學(xué)透線性代數(shù)和微積分
- Instant 960 Grid System
- Mastering Julia
- 精通API架構(gòu):設(shè)計(jì)、運(yùn)維與演進(jìn)
- Getting Started with Greenplum for Big Data Analytics
- Windows Phone 7.5:Building Location-aware Applications
- 利用Python進(jìn)行數(shù)據(jù)分析
- Kotlin開(kāi)發(fā)教程(全2冊(cè))
- 匯編語(yǔ)言編程基礎(chǔ):基于LoongArch
- C語(yǔ)言程序設(shè)計(jì)習(xí)題與實(shí)驗(yàn)指導(dǎo)
- SciPy Recipes
- Hacking Android