File size: 1,696 Bytes
876458a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://huggingface.co/rootcastleengineering/sofia/raw/main/schemas/feature-vector.schema.json",
  "title": "SofiaFeatureVector",
  "description": "Schema for Sofia Engine ordered, named, unit-bearing feature vectors (Schema v3.0).",
  "type": "object",
  "properties": {
    "schema_version": {
      "type": "string",
      "enum": ["3.0"]
    },
    "extractor_id": {
      "type": "string"
    },
    "extractor_version": {
      "type": "string"
    },
    "source_channel": {
      "type": "string"
    },
    "sample_rate": {
      "type": "number",
      "minimum": 0
    },
    "quality": {
      "type": "string",
      "enum": ["GOOD", "DEGRADED", "UNCERTAIN", "INVALID", "STALE", "SATURATED"]
    },
    "names": {
      "type": "array",
      "items": { "type": "string" }
    },
    "values": {
      "type": "array",
      "items": { "type": "number" }
    },
    "uncertainties": {
      "type": "array",
      "items": { "type": "number", "minimum": 0 }
    },
    "features": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "value": { "type": "number" },
          "unit": { "type": "string" },
          "uncertainty": { "type": "number", "minimum": 0 },
          "quality": { "type": "string" },
          "algorithm": { "type": "string" },
          "algorithm_version": { "type": "string" }
        },
        "required": ["name", "value", "unit"]
      }
    },
    "metadata": {
      "type": "object"
    }
  },
  "required": ["schema_version", "extractor_id", "extractor_version", "names", "values"]
}