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

时间序列

TimeSeries标签可用于标注时间序列数据。了解更多关于时间序列标注的信息,请访问时间序列模板页面

注意:数据中的时间轴必须经过排序,否则TimeSeries标签将无法正常工作。 如需使用自动生成的索引作为时间轴,请不要使用timeColumn参数。

适用于以下数据类型:时间序列。

参数

参数 类型 默认值 描述
name string Name of the element
value string Key used to look up the data, either URLs for your time-series if valueType=url, otherwise expects JSON
[valueType] url | json url Format of time series data provided. If set to “url” then Label Studio loads value references inside value key, otherwise it expects JSON.
[sync] string Object name to sync with.
[timeColumn] string Column name or index that provides temporal values. If your time series data has no temporal column then one is automatically generated.
[timeFormat] string Pattern used to parse values inside timeColumn, parsing is provided by d3, and follows strftime implementation
[timeDisplayFormat] string Format used to display temporal value. Can be a number or a date. If a temporal column is a date, use strftime to format it. If it’s a number, use d3 number formatting.
[durationDisplayFormat] string Format used to display temporal duration value for brush range. If the temporal column is a date, use strftime to format it. If it’s a number, use d3 number formatting.
[sep] string "," Separator for your CSV file.
[overviewChannels] string Comma-separated list of channel names or indexes displayed in overview.
[overviewWidth] string "25%" Default width of overview window in percents
[fixedScale] boolean false Whether to scale y-axis to the maximum to fit all the values. If false, current view scales to fit only the displayed values.

频道

通道标签可用于标记时间序列数据

参数

参数 类型 默认值 描述
column string column name or index
[legend] string display name of the channel
[units] string display units name
[displayFormat] string format string for the values, uses d3-format:
[,][.precision][f|%]
, - group thousands with separator (from locale): , (12345.6 -> 12,345.6) ,.2f (12345.6 -> 12,345.60)
.precision - precision for f|% type, significant digits for empty type:
.3f (12.3456 -> 12.345, 1000 -> 1000.000)
.3 (12.3456 -> 12.3, 1.2345 -> 1.23, 12345 -> 1.23e+4)
f - treat as float, default precision is .6: f (12 -> 12.000000) .2f (12 -> 12.00) .0f (12.34 -> 12)
% - treat as percents and format accordingly: %.0 (0.128 -> 13%) %.1 (1.2345 -> 123.4%)
[height] number height of the plot
[strokeColor] string "#f48a42" plot stroke color, expects hex value
[strokeWidth] number 1 plot stroke width
[markerColor] string "#f48a42" plot stroke color, expects hex value
[markerSize] number 0 plot stroke width
[markerSymbol] number circle plot stroke width
[timeRange] string data range of x-axis / time axis
[dataRange] string data range of y-axis / data axis
[showAxis] string show or bide both axis
[fixedScale] boolean if false current view scales to fit only displayed values; if given overwrites TimeSeries’ fixedScale

示例

针对从URL加载的CSV文件中存储的时间序列数据的标注配置,该文件包含3列:时间(time)、传感器1(sensor1)和传感器2(sensor2)。时间列以数字形式存储时间。

<View>
  <TimeSeries name="device" value="$timeseries" valueType="url" timeColumn="time">
     <Channel column="sensor1" />
     <Channel column="sensor2" />
  </TimeSeries>
  <TimeSeriesLabels name="label" toName="device">
    <Label value="Run" background="#5b5"/>
    <Label value="Walk" background="#55f"/>
  </TimeSeriesLabels>
</View>

示例

针对存储在任务字段ts中的时间序列数据的标注配置,采用Label Studio JSON格式。时间字段以日期形式存储在timeformat字段中,默认情况下在图表上显示为完整日期格式。

<View>
  <TimeSeries name="device" value="$ts" timeColumn="time" timeFormat="%m/%d/%Y %H:%M:%S">
     <Channel column="sensor1" />
     <Channel column="sensor2" />
  </TimeSeries>
</View>
专为各种规模的团队设计 版本比较