- 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.
推薦閱讀
- 大話PLC(輕松動漫版)
- Flask Web全棧開發實戰
- C語言程序設計實踐教程(第2版)
- LabVIEW Graphical Programming Cookbook
- 高效微控制器C語言編程
- Debian 7:System Administration Best Practices
- 劍指JVM:虛擬機實踐與性能調優
- 跟“龍哥”學C語言編程
- 無代碼編程:用云表搭建企業數字化管理平臺
- Apache Spark 2 for Beginners
- HTML5 and CSS3 Transition,Transformation,and Animation
- 移動界面(Web/App)Photoshop UI設計十全大補
- Python機器學習:預測分析核心算法
- Regression Analysis with Python
- 大學計算機基礎實驗指導