官术网_书友最值得收藏!

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!

主站蜘蛛池模板: 久治县| 额敏县| 壶关县| 沧州市| 延川县| 黔西县| 廉江市| 黄山市| 稷山县| 陇西县| 麻江县| 扎赉特旗| 邯郸市| 汕尾市| 海安县| 璧山县| 新巴尔虎右旗| 万安县| 固镇县| 岐山县| 宣城市| 阜宁县| 佛山市| 定西市| 华亭县| 蓝山县| 北海市| 同心县| 平遥县| 新和县| 阿克陶县| 古浪县| 昌黎县| 沧源| 贡嘎县| 沾益县| 波密县| 梓潼县| 郸城县| 延寿县| 鞍山市|