In this example, we use a dataset to train a Time Series algorithm with sales information of previous years and then we will see how a Time Series algorithm will help to predict future sales based on the trained pattern.
Open
Adventure Works DW2012.dsv
and add a new table to it. Choose vTimeSeries from the list of tables.Right-click on the vTimeSeries table in DSV and explore the data. You will see that this table contains the sales amount and quantity based on the product model and region and month.
In the DSV designer, select both the TimeIndex and ModelRegion columns from vTimeSeries and right-click and choose Set Logical Primary Key.
Create a new mining structure from the existing relational database and choose Microsoft Time Series as the mining model. Set the vTimeSeries table as Case table.
In the Specify the Training Data window, set TimeIndex and ModelRegion as the Key columns and set Amount and Quantity as the Input...