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

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!

主站蜘蛛池模板: 双牌县| 弥渡县| 万宁市| 锡林浩特市| 安图县| 南召县| 慈利县| 长沙县| 潜江市| 金川县| 青川县| 普宁市| 金门县| 方正县| 文水县| 杭锦后旗| 杭锦后旗| 三门县| 凌海市| 久治县| 宾川县| 长葛市| 扎兰屯市| 房山区| 娄底市| 娄烦县| 临沧市| 四平市| 贵德县| 怀宁县| 门头沟区| 郧西县| 云安县| 乌拉特前旗| 新营市| 杨浦区| 湄潭县| 莱西市| 青河县| 苏尼特右旗| 富民县|