- Hands-On Machine Learning with ML.NET
- Jarred Capellman
- 121字
- 2021-06-24 16:43:30
Running the example
To run both the training and prediction, simply build the project and then pass in the appropriate data.
For training, you can use the included sampledata.csv file or create your own. We will do this by opening a PowerShell window and passing in the relative path:
.\chapter02.exe train ..\..\..\Data\sampledata.csv
Area Under Curve: 100.00%
Area Under Precision Recall Curve: 100.00%
Accuracy: 100.00%
F1Score: 100.00%
Positive Recall: 1
Negative Recall: 1
Once the model is built, you can run the prediction as follows:
.\chapter02.exe predict "bad"
Based on "bad", the feedback is predicted to be:
Negative at a 64% confidence
Feel free to try various phrases to test the efficacy of the model, and congratulations on training your first model!
推薦閱讀
- 軟件架構設計:大型網站技術架構與業務架構融合之道
- Windows系統管理與服務配置
- TestNG Beginner's Guide
- Learning SQLite for iOS
- Building a Recommendation Engine with Scala
- C#程序設計(項目教學版)
- Android群英傳
- HoloLens與混合現實開發
- Programming Microsoft Dynamics? NAV 2015
- Android Game Programming by Example
- Android Studio開發實戰:從零基礎到App上線 (移動開發叢書)
- Manage Your SAP Projects with SAP Activate
- 從零開始學UI設計·基礎篇
- Kotlin程序員面試算法寶典
- Python程序設計:基礎與實踐