Resamplers
Resamplers
IndexMeanResampler
Bases: TransformerStep
Resample When the index of the run-to-failure cycle is a time feature
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rule |
str
|
Time frequency or rule according to which the data should be resampled |
required |
Source code in ceruleo/transformation/features/resamplers.py
transform(X)
Apply the transformation to the input life
Parameters:
Name | Type | Description | Default |
---|---|---|---|
X |
DataFrame
|
The input life |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
The resampled DataFrame |
Source code in ceruleo/transformation/features/resamplers.py
IntegerIndexResamplerTransformer
Bases: TransformerStep
Resample the time series with an integer index and interpolate linearly the values
Parameters:
Name | Type | Description | Default |
---|---|---|---|
time_feature |
str
|
Time feature |
required |
steps |
int
|
Number of steps |
required |
drop_time_feature |
bool
|
Drop the time feature |
required |
Source code in ceruleo/transformation/features/resamplers.py
partial_fit(X)
Obtain the name of the feature used as time
Parameters:
Name | Type | Description | Default |
---|---|---|---|
X |
DataFrame
|
The current time-series to be fitted |
required |
Returns:
Type | Description |
---|---|
Instance of class IntegerIndexResamplerTransformer |
Source code in ceruleo/transformation/features/resamplers.py
transform(X)
Apply the transformation to the input life
Parameters:
Name | Type | Description | Default |
---|---|---|---|
X |
DataFrame
|
The input life |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
The resampled DataFrame |
Source code in ceruleo/transformation/features/resamplers.py
SubsamplerTransformer
Bases: TransformerStep
IntegerIndexResamplerTransformer
Resample the time series with an integer index and interpolate linearly the values
Parameters:
Name | Type | Description | Default |
---|---|---|---|
time_feature |
str
|
Time feature |
required |
steps |
int
|
Number of steps |
required |
drop_time_feature |
bool
|
Drop the time feature |
required |
Source code in ceruleo/transformation/features/resamplers.py
partial_fit(X)
Obtain the name of the feature used as time
Parameters:
Name | Type | Description | Default |
---|---|---|---|
X |
DataFrame
|
The current time-series to be fitted |
required |
Returns:
Type | Description |
---|---|
Instance of class IntegerIndexResamplerTransformer |
Source code in ceruleo/transformation/features/resamplers.py
transform(X)
Apply the transformation to the input life
Parameters:
Name | Type | Description | Default |
---|---|---|---|
X |
DataFrame
|
The input life |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
The resampled DataFrame |