时间序列预测
为了训练机器学习模型对时间序列数据进行预测,请使用此模板创建数据集。该模板会提示标注者在时间序列通道中突出显示可预测的区域范围,并将其标记为“区域”,然后识别特定区域的趋势预测。
交互式模板预览
标注配置
<View>
<Header value="Select predictable region spans in time series:"/>
<TimeSeriesLabels name="predictable" toName="stock">
<Label value="Regions" background="red" />
</TimeSeriesLabels>
<!-- Use the TimeSeries object tag to display time series data -->
<TimeSeries name="stock" valueType="url" value="$csv"
sep=","
timeColumn="time"
timeFormat="%Y-%m-%d %H:%M:%S.%f"
timeDisplayFormat="%Y-%m-%d"
overviewChannels="value">
<!--Use the Channel tag to specify the name and format of the time series channel-->
<Channel column="value"
displayFormat=",.1f"
strokeColor="#1f77b4"
legend="Stock Value"/>
</TimeSeries>
<Header value="Forecast next trend:"/>
<!--Use the Choices control tag to prompt annotators to choose
the trend for the time series graph-->
<Choices name="trend_forecast" toName="stock">
<Choice value="Up"/>
<Choice value="Down"/>
<Choice value="Steady"/>
</Choices>
</View>
关于标注配置
所有标注配置必须包含在View标签内。
您可以添加一个header来为标注者提供说明:
<Header value="Select predictable region spans in time series:"/>
使用TimeSeriesLabels控制标签为时间序列图表上的特定区域提供标注方式:
<TimeSeriesLabels name="predictable" toName="stock">
<Label value="Regions" background="red" />
</TimeSeriesLabels>
使用TimeSeries对象标签来显示时间序列数据。valueType="url"参数指定时间序列数据以URL形式提供而非文件,value="$csv"参数表示URL存储在名为csv的数据键中。sep=","参数指定逗号作为数据分隔符,这是CSV格式文件的标准。时间参数用于指定文件中包含时间数据的列、时间数据的格式以及在标注界面上如何显示时间数据。
<TimeSeries name="stock" valueType="url" value="$csv"
sep=","
timeColumn="time"
timeFormat="%Y-%m-%d %H:%M:%S.%f"
timeDisplayFormat="%Y-%m-%d"
overviewChannels="value">
<Channel column="value"
displayFormat=",.1f"
strokeColor="#1f77b4"
legend="Stock Value"/>
</TimeSeries>
使用Channel标签来指定时间序列通道的名称和显示格式(采用d3格式)。您可以使用legend参数来指定用于描述通道的值。
使用Choices控制标签提示标注者为整个时间序列图表选择趋势:
<Choices name="trend_forecast" toName="stock">
<Choice value="Up"/>
<Choice value="Down"/>
<Choice value="Steady"/>
</Choices>