- 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.
推薦閱讀
- OpenStack Cloud Computing Cookbook(Third Edition)
- Spring 5.0 Microservices(Second Edition)
- 自己動手寫搜索引擎
- Power Up Your PowToon Studio Project
- 兩周自制腳本語言
- Java面向對象軟件開發
- 軟件界面交互設計基礎
- React Native Cookbook
- Learning C++ Functional Programming
- Web程序設計(第二版)
- QGIS:Becoming a GIS Power User
- Flutter跨平臺開發入門與實戰
- Visual Basic程序設計上機實驗教程
- Image Processing with ImageJ
- 軟硬件綜合系統軟件需求建模及可靠性綜合試驗、分析、評價技術