- Learning Data Mining with Python(Second Edition)
- Robert Layton
- 233字
- 2021-07-02 23:40:03
Downloading the example code
You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you could visit http://www.packtpub.com/support and register to have the files e-mailed directly to you. I've also setup a GitHub repository that contains a live version of the code, along with new fixes, updates and so on. You can retrieve the code and datasets at the repository here: https://github.com/dataPipelineAU/LearningDataMiningWithPython2
You can read the dataset can by looking at each row (horizontal line) at a time. The first row (0, 1, 0, 0, 0) shows the items purchased in the first transaction. Each column (vertical row) represents each of the items. They are bread, milk, cheese, apples, and bananas, respectively. Therefore, in the first transaction, the person bought cheese, apples, and bananas, but not bread or milk. Add the following line in a new cell to allow us to turn these feature numbers into actual words:
features = ["bread", "milk", "cheese", "apples", "bananas"]
Each of these features contains binary values, stating only whether the items were purchased and not how many of them were purchased. A1 indicates that at least 1 item was bought of this type, while a 0 indicates that absolutely none of that item was purchased. For a real world dataset, using exact figures or a larger threshold would be required.
- LabVIEW入門與實戰開發100例
- Oracle 12c中文版數據庫管理、應用與開發實踐教程 (清華電腦學堂)
- Learning ArcGIS Pro
- Cassandra Data Modeling and Analysis
- 人人都懂設計模式:從生活中領悟設計模式(Python實現)
- 概率成形編碼調制技術理論及應用
- C程序設計案例教程
- 信息技術應用基礎
- 深入淺出PostgreSQL
- C# 8.0核心技術指南(原書第8版)
- 大數據分析與應用實戰:統計機器學習之數據導向編程
- CoffeeScript Application Development Cookbook
- Android移動開發案例教程:基于Android Studio開發環境
- Android應用開發實戰
- Python Machine Learning Blueprints:Intuitive data projects you can relate to