- 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.
推薦閱讀
- Advanced Splunk
- 程序員修煉之道:程序設計入門30講
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發經典名著)
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- The Android Game Developer's Handbook
- Android項目開發入門教程
- Vue.js 2 and Bootstrap 4 Web Development
- 程序員面試算法寶典
- Bulma必知必會
- TypeScript圖形渲染實戰:基于WebGL的3D架構與實現
- SAS數據統計分析與編程實踐
- Python面向對象編程:構建游戲和GUI
- 圖數據庫實戰
- 現代C++編程實戰:132個核心技巧示例(原書第2版)
- Fast Data Processing with Spark(Second Edition)