- Machine Learning for Cybersecurity Cookbook
- Emmanuel Tsukerman
- 173字
- 2021-06-24 12:29:06
How it works...
Leveraging the dataset we built up in the Scraping GitHub for files of a specific type recipe, we place files in different directories, based on their file type, and then specify the paths in preparation for building our classifier (step 1). The code for this recipe assumes that the "JavascriptSamples" directory and others contain the samples, and have no subdirectories. We read in all files into a corpus, and record their labels (step 2). We train-test split the data and prepare a pipeline that will perform basic NLP on the files, followed by a random forest classifier (step 3). The choice of classifier here is meant for illustrative purposes, rather than to imply a best choice of classifier for this type of data. Finally, we perform the basic, but important, steps in the process of creating a machine learning classifier, consisting of fitting the pipeline to the training data and then assessing its performance on the testing set by measuring its accuracy and confusion matrix (step 4).
- Word 2000、Excel 2000、PowerPoint 2000上機指導與練習
- Practical Ansible 2
- Spark編程基礎(Scala版)
- Verilog HDL數字系統設計入門與應用實例
- Julia 1.0 Programming
- 數據運營之路:掘金數據化時代
- 自動檢測與轉換技術
- 網絡綜合布線設計與施工技術
- Blender 3D Printing by Example
- 統計挖掘與機器學習:大數據預測建模和分析技術(原書第3版)
- 經典Java EE企業應用實戰
- Linux系統下C程序開發詳解
- ZigBee無線通信技術應用開發
- 數據要素:全球經濟社會發展的新動力
- Raspberry Pi Projects for Kids