BaşlayınÜcretsiz Başlayın

Fitting on residuals

Another method of detecting outliers from time series is fitting a classifier to the residuals from decomposition. This is also a univariate approach with the advantage of being much faster than other multivariate methods.

The apple dataset has been loaded, along with MAD estimator and the seasonal_decompose function.

Bu egzersiz

Anomaly Detection in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

results = seasonal_decompose(apple['Volume'], period=365)

# Extract and reshape the residuals
residuals = ____
residuals = ____
Kodu Düzenle ve Çalıştır