Entropy
Entropy
LocalEntropyMeasures
Bases: TransformerStep
Compute diverse entropy measures
For each feature present in the life a number of feature will be computed for each time stamp
The possible features are:
- Local Active Information
- Local Block Entropy
- Local Entropy Rate
Parameters:
Name | Type | Description | Default |
---|---|---|---|
min_points |
The minimun number of points of the expanding window, by default 2 |
required | |
to_compute |
List[str]
|
List of the features to compute, by default None. Valid values are: 'local_active_information', 'local_block_entropy', 'local_entropy_rate' |
None
|
name |
Optional[str]
|
Name of the step, by default None |
None
|
Source code in ceruleo/transformation/features/entropy.py
transform(X)
Return a new dataframe with Entropy features computed for each feature in the input
Parameters:
Name | Type | Description | Default |
---|---|---|---|
X |
DataFrame
|
Input life |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
A new DataFrame with the at maximum three times the number of columns as the input since three Entropy features are computed for each feature in the input |