Skip to content

Instantly share code, notes, and snippets.

@cydal
Last active November 28, 2020 21:42
Show Gist options
  • Save cydal/033320c4bc9ac44770f5da4f97d51a38 to your computer and use it in GitHub Desktop.
Save cydal/033320c4bc9ac44770f5da4f97d51a38 to your computer and use it in GitHub Desktop.
from tsextract.feature_extraction.extract import build_features, build_features_forecast
from tsextract.domain.statistics import mean, median, std
features_request = {
"window": [48],
"window_statistic": [48, mean],
"difference_statistic": [48, 1, std],
}
build_df = build_features(df.energy, features_request, target_lag=48, include_tzero=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment