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

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!

主站蜘蛛池模板: 舞阳县| 连平县| 通许县| 出国| 平顶山市| 准格尔旗| 浙江省| 天柱县| 富民县| 尉犁县| 西城区| 八宿县| 房山区| 泾阳县| 石河子市| 沂源县| 定结县| 泰顺县| 陇西县| 景洪市| 武陟县| 鹤峰县| 南部县| 宁国市| 神木县| 高雄市| 嘉黎县| 呼和浩特市| 双流县| 黑龙江省| 南汇区| 武汉市| 西华县| 越西县| 宜丰县| 奉贤区| 蒙阴县| 密云县| 霍邱县| 广河县| 新乡县|