tensortrade.features.feature_transformer module¶
-
class
tensortrade.features.feature_transformer.
FeatureTransformer
(columns=None, inplace=True, **kwargs)[source]¶ Bases:
object
An abstract feature transformer for use within feature pipelines.
-
__init__
(columns=None, inplace=True, **kwargs)[source]¶ - Parameters
columns (optional) – A list of column names to normalize.
inplace (optional) – If False, a new column will be added to the output for each input column.
-
abstract
transform
(X, input_space)[source]¶ Transform the data set and return a new data frame.
- Parameters
X (
DataFrame
) – The set of data to transform.input_space (
Space
) – A gym.Space matching the shape of the pipeline’s input.
- Return type
DataFrame
- Returns
A transformed data frame.
-