- Hands-On Machine Learning with ML.NET
- Jarred Capellman
- 207字
- 2021-06-24 16:43:35
Running the application
With the addition of feature extraction in our pipeline, we first need to perform feature extraction on the files:
- Assuming the folder of files called temp_data exists, execute the following command:
PS chapter03-logistic-regression\bin\Debug\netcoreapp3.0> .\chapter03-logistic-regression.exe extract temp_data
Extracted 8 to sampledata.csv
The output shows the count of extracted files and the output sample file.
- To train the model using either the included sampledata.csv or one you trained yourself, execute the following command:
PS chapter03-logistic-regression\bin\Debug\netcoreapp3.0> .\chapter03-logistic-regression.exe train ..\..\..\Data\sampledata.csv
The chapter3.mdl model file should exist in the folder executed in once complete.
- To run the newly trained model against an existing file such as the compiled chapter3 executable, run the following command:
PS chapter03-logistic-regression\bin\Debug\netcoreapp3.0> .\chapter03-logistic-regression.exe predict .\chapter03-logistic-regression.exe
Based on the file (.\chapter03-logistic-regression.exe) the file is classified as benign at a confidence level of 8%
If you are looking for sample files, the c:\Windows and c:\Windows\System32 folders contain numerous Windows Executables and DLLs. In addition, if you are looking to create malicious-looking files that are actually clean, you can create files on the fly on http://cwg.io in various file formats. This is a helpful tool in the cyber-security space where testing new functionality on a development machine is much safer than detonating real zero-day threats on!
推薦閱讀
- Java程序設計(慕課版)
- 精通Nginx(第2版)
- Docker and Kubernetes for Java Developers
- Nginx Essentials
- Android 應用案例開發大全(第3版)
- Building Serverless Applications with Python
- PHP 7+MySQL 8動態網站開發從入門到精通(視頻教學版)
- 微信小程序開發實戰:設計·運營·變現(圖解案例版)
- IBM Cognos TM1 Developer's Certification guide
- Mastering Adobe Captivate 7
- MongoDB Cookbook(Second Edition)
- Java程序性能優化實戰
- 計算機信息技術實踐教程
- 區塊鏈原理、架構與應用(第2版)
- Building Business Websites with Squarespace 7