Icon

01_Accessing_Transforming_and_Modeling_Time_Series

Accessing, Transforming and Modeling Time Series

This workflow shows how to access time series data, make it equally-spaced, impute missing values, aggregate it at a greater granularity, and explore it visually. After these steps, the time series is decomposed into trend, seasonality, and residual. The residual is modeled with an ARIMA model, and deployment data are saved for testing the model's out-of-sample forecast accuracy.


Annotations and comments
  • Steps from accessing to preprocessing, transforming, and modeling time series
  • Visual Exploration - Line Plot, Seasonal Plot, Conditional Box Plot, Lag Plot
  • Inspecting and Transforming Time Series
  • Deploying Time Series
  • Dynamic
  • EmptyTable to satisfy data input port
  • number of Periods to Forecast
  • in-sample prediction
  • level
  • fail if datetime and granularity not compatible
  • fail if value column type and aggregation not compatible
  • top: anything else middle: Quarter bottom: Week
  • take only the timestamp and value cols
  • select timestamp
  • select aggregation column
  • add the granularity col
  • top: Local Date Time middle: Local Date bottom: the rest
  • top: Zoned Date Time middle: Local Time
  • determine the ports for the Case Switch node
  • convert to local date&time
  • convert to local date
  • convert to local time
  • convert to zoned date&time
  • take only timestamp col
  • get the type
  • fail if date type but time granularity time type but date granularity
  • take only value col
  • get the selected aggregation
  • fail if string type but incompatible aggregation selection
  • mapping aggregation and whether it supports String
  • extract all datetime components
  • top: Time granularity bottom: the rest
  • filter the selected granularity
  • filter according to input datetime type
  • for Time granularity, check the input timestamp column type to determine the correct query mapping
  • perform aggregation
  • perform aggregation quarterly
  • perform aggregation weekly
  • merge all flow variables
  • select granularity
  • select aggregation method
  • create the aggregated timestamp
  • mapping of granularities & queries for the String Manipulation node
  • break if num missing > 0
  • Filter to target
  • count missings
  • rename target
  • Target Column
  • AR Order
  • I Order
  • MA Order
  • Missing MAPE if zeroes in target
  • Auto ARIMA Learner
  • Residuals
  • Model summary
  • Method
  • Criterion
  • Mean(Sales)
  • Monthly distributions
  • Only 2017
  • name column "signal"
  • signalcolumn
  • Correlation cut off
  • fail if step size > max lag
  • Calculate sample acf
  • Cut Off
  • Calculate row count
  • Max Lag
  • Step Size
  • ACF
  • calc correlations
  • check that step size <= max lag
  • Colors
  • export dominant seasonality lag as flow variable
  • Max Lags
  • Lag Step
  • return other columns
  • Signal
  • Noise
  • Seasonality 2
  • numeric index for x-axis
  • First and second lags for output
  • 0 for seasonality if non detected
  • show error message if no numeric col is found in the input
  • get only value column
  • take only lag column
  • remove lag col
  • Only allows for numeric selection
  • rename col to data
  • rename lag
  • rename col
  • Value Column
  • get number of rows
  • Lag Value
  • create col name
  • join with original table
  • create lag cols
  • remove seasonality
  • remove missing rows
  • replace missing vals with 0
  • Read Sample - Superstore data
  • Year, month, week as seasonal cycles
  • Number rows
  • One value per day
  • Turning point, Trend
  • Seasonal plot
  • Original daily data
  • Yearly seasonality
  • Decomposed time series
  • Line color
  • Sales is 0 where missing
  • Outliers in residual
  • trend.pmml
  • 2017 for testing
  • Ascending by time
  • deployment.table
  • lags.table
  • training.table
  • boolean to replace timestamp column
  • take only the timestamp col
  • rename col to lower bound
  • rename col to upper bound
  • update domain
  • extract table dim
  • extract table spec
  • get index of last row
  • merge all
  • take only last row
  • take only first row
  • top port: Local Date Time second port: Local Date
  • top port: Local Time bottom port: Zoned Date Time
  • for Local Date Time
  • for Local Date
  • for Local Time
  • for Zoned Date Time
  • determine the port for the CASE Switch node
  • rename the new timestamp col to the old timestamp name
  • rename the new timestamp col
  • top: replace bottom: append
  • create column name
  • join with other input columns
  • sort by timestamp
  • create new RowIDs
  • map the selected window to the corresponding period
  • determine port
  • select time window
  • Seasonality lags

Nodes

Extensions

Links