Nyoka's Pre-Processing Module¶
-
class
Lag
(aggregation, value=1, copy=True)[source]¶ Bases:
sklearn.base.TransformerMixin
The Lag class takes value number of previous record of the fields where it is applied and applies aggregation to those values.
Parameters: - aggregation (String) – aggregation type. The valid types are [“min”, “max”, “sum”, “avg”, “median”, “product”, “stddev”]
- value (Integer (default = 1)) – The number of previous record to aggregate