- 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.
推薦閱讀
- 程序設計與實踐(VB.NET)
- Boost C++ Application Development Cookbook(Second Edition)
- 快速念咒:MySQL入門指南與進階實戰
- 零基礎輕松學SQL Server 2016
- Python爬蟲、數據分析與可視化:工具詳解與案例實戰
- Orleans:構建高性能分布式Actor服務
- 零基礎C#學習筆記
- Java EE架構設計與開發實踐
- TypeScript圖形渲染實戰:2D架構設計與實現
- PHP+MySQL Web應用開發教程
- Python編程入門(第3版)
- 基于MATLAB的控制系統仿真及應用
- The Applied Data Science Workshop
- 大話C語言
- 區塊鏈原理與技術應用