Skip to content

Time series forecasting


Each app is a specialized intelligence to perform a single prediction task, trained from one or more datasets. Each app provides a space for the user to define the task, and to train and compare several models to achieve the goal. The "forecasting" app, as its name suggests, is tasked with performing a time-series forecasting task.

Importing app

Next you need to import app in order to call functions involved in this module.

from aiaengine.api import app

Creating an app for a dataset

Now you can add a new app by specifying the required parameter values as follows.

create_app_response = client.apps.CreateApp(
        name='App Name',
        description='What is this app about',
        target_columns=['target_column_1', 'target_column_2'],
        extra_columns={'timeColumn': 'time_column'},

Similar to the process of building a task for classification and regression, you need the name, and description and the dataset id to build an application for times-series forecasting. Here you need to specify the problem type as 'forecasting' for this task.

Particularly for time-series forecasting, you can specify one or more target columns corresponding to input target_columns. In the above example, we have two target columns 'target_column_1' and 'target_column_2' for forecasting. You also need to specify the time column in a forecasting application. We use 'time_column' as our time column in the example. At last, you can set up a ratio of train-test split using training_data_proportion which indicates the proportion of data used for training over the whole dataset. For time-series forecasting, the training set comes in sequence before the test set in chronological order.

app_id =

Once created, an application is assigned a unique id, which is frequently used in related functions.