Extract Features
The feature extractor module generates features that can be categorized into several types based on the nature of the calculations.
Last updated
Was this helpful?
The feature extractor module generates features that can be categorized into several types based on the nature of the calculations.
Last updated
Was this helpful?
Tutorials
are the best documentation —
This module provides powerful feature extraction capabilities for time series data, particularly focused on financial and accounting metrics. It leverages the sovai
library for data retrieval and a custom feature_extractor
function for generating a wide range of statistical and time series features.
The feature_extractor
generates features that fall into several categories:
Statistical Features
Entropy and Complexity Features
Frequency and Streak Features
Energy and Magnitude Features
Distributional Features
Position Features
The underlying feature_extractor
function offers more granular control over the feature extraction process. It can be used directly for more advanced use cases:
This advanced usage allows for more customization, including specifying entity and date columns, adjusting lookback periods, and enabling verbose output for debugging.
Mean and Variance Related:
mean_abs_change
variation_coefficient
mean_change
mean_second_derivative_central
Entropy:
binned_entropy
Complexity:
lempel_ziv_complexity
Frequency:
number_crossings
number_peaks
Streak:
longest_streak_above_mean
longest_losing_streak
longest_winning_streak
Energy:
absolute_energy
Magnitude:
absolute_maximum
absolute_sum_of_changes
max_abs_change
Statistical:
root_mean_square
ratio_beyond_r_sigma
Distributional:
benford_correlation
percent_reoccurring_points
percent_reoccurring_values
Positions:
first_location_of_maximum
first_location_of_minimum
last_location_of_maximum
last_location_of_minimum
These categories help organize the wide range of features generated, which capture different aspects of the time series data, making them useful for various analytical and predictive tasks.