Building a Feature Pipeline¶
This tutorial shows how to build a reusable, serializable feature engineering pipeline.
Step 1: Load Data¶
Step 2: Build the Pipeline¶
pipeline = fs.FeatureSet([
fs.features.RSI(period=14),
fs.features.MACD(fast=12, slow=26, signal=9),
fs.features.BollingerBands(period=20),
fs.features.ATR(period=14),
fs.features.Returns(periods=[1, 5, 21]),
fs.features.RollingStats(windows=[5, 21], stats=["mean", "std"]),
fs.features.Lags(columns=["close"], lags=[1, 2, 3, 5]),
fs.features.Calendar(),
])