--- title: Time Series Forecasting type: templates category: Time Series Analysis cat: time-series-analysis order: 610 meta_title: Time Series Forecasting Data Labeling Template meta_description: Template for preparing time series data for forecasting use cases with Label Studio for your machine learning and data science projects. --- To train a machine learning model to perform forecasting on time series data, create a dataset using this template. This template prompts annotators to highlight predictable region spans in the time series channels and label them as "Regions", then identify the trend forecast for a specific region. ## Interactive Template Preview
## Labeling Configuration ```html
``` ## About the labeling configuration All labeling configurations must be wrapped in [View](/tags/view.html) tags. You can add a [header](/tags/header.html) to provide instructions to the annotator: ```xml
``` Use the [TimeSeriesLabels](/tags/timeserieslabels.html) control tag to provide a way to label specific regions on the time series graph: ```xml ``` Use the [TimeSeries](/tags/timeseries.html) object tag to display time series data. The `valueType="url"` parameter specifies that the time series data is available as a URL, rather than a file, and the `value="$csv"` parameter specifies that the URL is stored in a data key called `csv`. The `sep=","` parameter specifies that a comma is the data separator, as is standard for a CSV-formatted file. The time parameters specify which column contains the time data, the format of the time data in the file, and how to display the time data on the labeling interface. ```xml ``` Use the Channel tag to specify the name and display format, using d3 format, of the time series channel. You can use the `legend` parameter to specify the value to use for describing the channel. Use the Choices control tag to prompt annotators to choose the trend for the overall time series graph: ```xml ``` ## Related tags - [Header](/tags/header.html) - [TimeSeriesLabels](/tags/timeserieslabels.html) - [TimeSeries](/tags/timeseries.html) - [Choices](/tags/choices.html)