Gist 6b851197754b1a378f905e75b82697b0
✓ Published0🌍 Public
Aaakansh9
Last edited Jan 19, 2017
Created on Nov 8, 2016
This example demonstrates how to engineer and transform date, time, categorical, and numerical features for predictive modeling. The R script defines date-based variables such as day of week, week of year, and quarter, alongside time bins for 24-hour periods, and incorporates open calendar data like national holidays and seasons. It applies categorical encodings via hashing with FeatureHashing's `hashed.model.matrix` using a 14-bit hash, one-hot, target, orthogonal polynomial, and deviation methods. Numerical transformations include Box-Cox and binning, while general manipulations support column-wise or combinatorial diff, sum, prod, and custom formula operations across data frames.
AI-generated description