For a listing of optional parameter strings, see Optional parameter strings.
With time series prediction mining function, you can use optional parameter strings for the following tasks:
By default, the Easy Mining procedure BuildTsModel uses all of these algorithms. However, you might want to use only one of these algorithms. You can use the BuildTsModel procedure by specifying the following options:
ARIMA
DM_enableARIMA() DM_disableARIMA()
Exponential Smooting
DM_enableExpSm() DM_disableExpSm()
Seasonal Trend Decomposition
DM_enableSTD() DM_disableSTD()
db2 ''call IDMMX.BuildTsModel('DWH.AIR_PASSENGER',
'DWH.AIR_PASSENGER_DATA',
'TIME',
'VALUE',
'DM_disableExpSm(),DM_disableSTD()')''
Intelligent Miner time series modeling uses past values in a series to predict future values. By default, all values present in a column are considered when creating predictions of future values. This might not be desirable in all cases. There might be, for instance, cases in which some of the old values are outdated. Intelligent Miner allows you to set the period of time from which values should be drawn for prediction using the methods DM_setFromTime and DM_setToTime. Both take as single parameter a VARCHAR that must represent a point in time of the same type as the column selected as time field.
Intelligent Miner usually determines automatically up to which future point in time it can forecast. You can, however, specify the forecast horizon by using the DM_setForcHorizon parameter. It takes as parameter a VARCHAR that must represent a point in time of the same type as the column selected as time field.
db2 ''call IDMMX.BuildTsModel('DWH.AIR_PASSENGER',
'DWH.AIR_PASSENGER_DATA',
'TIME',
'VALUE',
'DM_setFromTime(''2009-04-06 05:04:14.0''),
DM_setToTime(''2009-04-07 06:03:09.0''),
DM_setForcHorizon(''2009-04-12 00:00:00.0'')')”
All of these methods deliver a table containing columns for the name of the method, the target column, the time (of the type determined by which method was invoked), the forecasted value, and the confidence of the value. The following example shows how to apply it. In the given case, all forecasts of the previously trained model ‘DWH.AIR_PASSENGER' produced by the ARIMA algorithm are retrieved. For more information, see the Modeling documentation.
db2 ''select * from table (IDMMX.DM_getForcDate(( select MODEL from IDMMX.TIMESERIESMODELS
where modelname='DWH.AIR_PASSENGER') ) ) t WHERE method='ARIMA')''
You can specify the length of seasonal cycles for the Time Series algorithm to consider by using the method DM_setSeasonalCyc. This method uses the following parameters:
db2 ''call IDMMX.BuildTsModel('DWH.AIR_PASSENGER',
'DWH.AIR_PASSENGER_DATA',
'TIME',
'VALUE',
'DM_setSeasonalCyc(''VALUE'',365, ''days'')')''