A transformer for normalizing values within a feature pipeline by the column-wise extrema.
- A list of column names to normalize.
- The minimum value in the range to scale to.
- The maximum value in the range to scale to.
False, a new column will be added to the output for each input column.
Properties and Setters¶
Below are the functions that the
MinMaxNormalizer uses to effectively operate.
- Apply the pipeline of feature transformations to an observation frame.
from tensortrade.features import FeaturePipeline from tensortrade.features.scalers import MinMaxNormalizer from tensortrade.features.stationarity import FractionalDifference from tensortrade.features.indicators import SimpleMovingAverage price_columns = ["open", "high", "low", "close"] normalize_price = MinMaxNormalizer(price_columns) moving_averages = SimpleMovingAverage(price_columns) difference_all = FractionalDifference(difference_order=0.6) feature_pipeline = FeaturePipeline(steps=[normalize_price, moving_averages, difference_all]) exchange.feature_pipeline = feature_pipeline