- 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.
推薦閱讀
- ThinkPHP 5實戰(zhàn)
- Scala Design Patterns
- Mastering Spring MVC 4
- Java從入門到精通(第4版)
- HTML5 Mobile Development Cookbook
- C語言程序設計案例式教程
- 微信小程序開發(fā)解析
- 青少年Python編程入門
- Learning OpenStack Networking(Neutron)(Second Edition)
- C語言程序設計
- 輕松上手2D游戲開發(fā):Unity入門
- C語言程序設計習題與實驗指導
- Python青少年趣味編程
- 貫通Tomcat開發(fā)
- Deep Learning for Natural Language Processing