指南 3个标注团队操作手册:提升标注速度与质量

异常值与异常检测

如果您想训练一个机器学习模型来检测时间序列数据中的异常值和异常情况,可以使用此模板标记可疑区域,并将这些时间序列通道区域分类为异常值或异常情况。

交互式模板预览

标注配置

<View>

    <TimeSeries name="ts" valueType="url" value="$csv"
                sep=","
                timeColumn="time"
                timeFormat="%Y-%m-%d %H:%M:%S.%f"
                timeDisplayFormat="%Y-%m-%d"
                overviewChannels="velocity">

        <Channel column="velocity"
                 units="miles/h"
                 displayFormat=",.1f"
                 strokeColor="#1f77b4"
                 legend="Velocity"/>
    </TimeSeries>
    <TimeSeriesLabels name="label" toName="ts">
        <Label value="Region" background="red" />
    </TimeSeriesLabels>
  <Choices name="region_type" toName="ts"
        perRegion="true" required="true">
      <Choice value="Outlier"/>
      <Choice value="Anomaly"/>
  </Choices>
</View>

关于标注配置

所有标注配置必须包含在View标签内。

使用TimeSeries对象标签来指定时间序列数据源。valueType="url"参数表示时间序列数据以URL形式提供而非文件,value="$csv"参数指定URL存储在名为csv的数据键中。sep=","参数指定逗号作为数据分隔符,这是CSV格式文件的标准。时间参数用于指定文件中包含时间数据的列、时间数据的格式以及在标注界面上显示时间数据的方式。

<TimeSeries name="ts" valueType="url" value="$csv"
               sep=","
               timeColumn="time"
               timeFormat="%Y-%m-%d %H:%M:%S.%f"
               timeDisplayFormat="%Y-%m-%d"
               overviewChannels="velocity">
       <Channel column="velocity"
                units="miles/h"
                displayFormat=",.1f"
                strokeColor="#1f77b4"
                legend="Velocity"/>
   </TimeSeries>

TimeSeries标签中的overviewChannels参数用于指定时间序列数据中要作为通道显示在时间序列图表上的列。随后您可以使用Channel标签及其参数来提供数据的详细信息,例如数据的单位、使用d3格式的通道数据displayFormat、高亮显示通道时使用的strokeColor,以及该通道在标注界面图例中应显示的名称。

使用TimeSeriesLabels控制标签来指定要应用于时间序列图表区域的标签:

<TimeSeriesLabels name="label" toName="ts">
        <Label value="Region" background="red" />
</TimeSeriesLabels>

使用Choices控制标签对时间序列数据中的每个特定区域分类是否为异常值或异常情况:

<Choices name="region_type" toName="ts"
        perRegion="true" required="true">
      <Choice value="Outlier"/>
      <Choice value="Anomaly"/>
</Choices>