- 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.
推薦閱讀
- Learn ECMAScript(Second Edition)
- JavaScript前端開發(fā)模塊化教程
- 動手玩轉(zhuǎn)Scratch3.0編程:人工智能科創(chuàng)教育指南
- Python語言程序設計
- 零基礎學Java(第4版)
- 概率成形編碼調(diào)制技術理論及應用
- AutoCAD VBA參數(shù)化繪圖程序開發(fā)與實戰(zhàn)編碼
- Hands-On Full Stack Development with Spring Boot 2.0 and React
- R數(shù)據(jù)科學實戰(zhàn):工具詳解與案例分析
- Spring+Spring MVC+MyBatis從零開始學
- OpenMP核心技術指南
- 3ds Max印象 電視欄目包裝動畫與特效制作
- Java 9 with JShell
- Microsoft HoloLens By Example
- 交互設計師成長手冊:從零開始學交互