
Feature Engineering for Machine Learning
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Feature engineering is a crucial step in the machine-learning pipeline, yet this topic is rarely examined on its own. With this practical book, you'll learn techniques for extracting and transforming features?the numeric representations of raw data?into formats for machine-learning models. Each chapter guides you through a single data problem, such as how to represent text or image data. Together, these examples illustrate the main principles of feature engineering.
Rather than simply teach these principles, authors Alice Zheng and Amanda Casari focus on practical application with exercises throughout the book. The closing chapter brings everything together by tackling a real-world, structured dataset with several feature-engineering techniques. Python packages including numpy, Pandas, Scikit-learn, and Matplotlib are used in code examples.
You'll examine:
- Feature engineering for numeric data: filtering, binning, scaling, log transforms, and power transforms
- Natural text techniques: bag-of-words, n-grams, and phrase detection
- Frequency-based filtering and feature scaling for eliminating uninformative features
- Encoding techniques of categorical variables, including feature hashing and bin-counting
- Model-based feature engineering with principal component analysis
- The concept of model stacking, using k-means as a featurization technique
- Image feature extraction with manual and deep-learning techniques
More details
Other editions
Additional editions

Content
- Intro
- Copyright
- Table of Contents
- Preface
- Introduction
- Conventions Used in This Book
- Using Code Examples
- O'Reilly Safari
- How to Contact Us
- Acknowledgments
- Special Thanks from Alice
- Special Thanks from Amanda
- Chapter 1. The Machine Learning Pipeline
- Data
- Tasks
- Models
- Features
- Model Evaluation
- Chapter 2. Fancy Tricks with Simple Numbers
- Scalars, Vectors, and Spaces
- Dealing with Counts
- Binarization
- Quantization or Binning
- Log Transformation
- Log Transform in Action
- Power Transforms: Generalization of the Log Transform
- Feature Scaling or Normalization
- Min-Max Scaling
- Standardization (Variance Scaling)
- l2 Normalization
- Interaction Features
- Feature Selection
- Summary
- Bibliography
- Chapter 3. Text Data: Flattening, Filtering, and Chunking
- Bag-of-X: Turning Natural Text into Flat Vectors
- Bag-of-Words
- Bag-of-n-Grams
- Filtering for Cleaner Features
- Stopwords
- Frequency-Based Filtering
- Stemming
- Atoms of Meaning: From Words to n-Grams to Phrases
- Parsing and Tokenization
- Collocation Extraction for Phrase Detection
- Summary
- Bibliography
- Chapter 4. The Effects of Feature Scaling: From Bag-of-Words to Tf-Idf
- Tf-Idf : A Simple Twist on Bag-of-Words
- Putting It to the Test
- Creating a Classification Dataset
- Scaling Bag-of-Words with Tf-Idf Transformation
- Classification with Logistic Regression
- Tuning Logistic Regression with Regularization
- Deep Dive: What Is Happening?
- Summary
- Bibliography
- Chapter 5. Categorical Variables: Counting Eggs in the Age of Robotic Chickens
- Encoding Categorical Variables
- One-Hot Encoding
- Dummy Coding
- Effect Coding
- Pros and Cons of Categorical Variable Encodings
- Dealing with Large Categorical Variables
- Feature Hashing
- Bin Counting
- Summary
- Bibliography
- Chapter 6. Dimensionality Reduction: Squashing the Data Pancake with PCA
- Intuition
- Derivation
- Linear Projection
- Variance and Empirical Variance
- Principal Components: First Formulation
- Principal Components: Matrix-Vector Formulation
- General Solution of the Principal Components
- Transforming Features
- Implementing PCA
- PCA in Action
- Whitening and ZCA
- Considerations and Limitations of PCA
- Use Cases
- Summary
- Bibliography
- Chapter 7. Nonlinear Featurization via K-Means Model Stacking
- k-Means Clustering
- Clustering as Surface Tiling
- k-Means Featurization for Classification
- Alternative Dense Featurization
- Pros, Cons, and Gotchas
- Summary
- Bibliography
- Chapter 8. Automating the Featurizer: Image Feature Extraction and Deep Learning
- The Simplest Image Features (and Why They Don't Work)
- Manual Feature Extraction: SIFT and HOG
- Image Gradients
- Gradient Orientation Histograms
- SIFT Architecture
- Learning Image Features with Deep Neural Networks
- Fully Connected Layers
- Convolutional Layers
- Rectified Linear Unit (ReLU) Transformation
- Response Normalization Layers
- Pooling Layers
- Structure of AlexNet
- Summary
- Bibliography
- Chapter 9. Back to the Feature: Building an Academic Paper Recommender
- Item-Based Collaborative Filtering
- First Pass: Data Import, Cleaning, and Feature Parsing
- Academic Paper Recommender: Naive Approach
- Second Pass: More Engineering and a Smarter Model
- Academic Paper Recommender: Take 2
- Third Pass: More Features = More Information
- Academic Paper Recommender: Take 3
- Summary
- Bibliography
- Appendix A. Linear Modeling and Linear Algebra Basics
- Overview of Linear Classification
- The Anatomy of a Matrix
- From Vectors to Subspaces
- Singular Value Decomposition (SVD)
- The Four Fundamental Subspaces of the Data Matrix
- Solving a Linear System
- Bibliography
- Index
- About the Authors
- Colophon
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.