record.proto 2.0 KB
Newer Older
1 2 3 4 5 6 7 8 9
syntax = "proto3";
package visualdl;

message Record {

  message Image {
    bytes encoded_image_string = 4;
  }

走神的阿圆's avatar
走神的阿圆 已提交
10 11 12 13
  message Text {
    string encoded_text_string = 1;
  }

14 15 16 17 18 19 20 21 22
  message Audio {
    float sample_rate = 1;
    int64 num_channels = 2;
    int64 length_frames = 3;
    bytes encoded_audio_string = 4;
    string content_type = 5;
  }

  message Embedding {
23
    repeated string label = 1;
24 25 26 27 28
    repeated float vectors = 2;
  }

  message Embeddings {
    repeated Embedding embeddings = 1;
29
    repeated string label_meta = 2;
30 31 32 33 34 35 36
  }

  message bytes_embeddings {
    bytes encoded_labels = 1;
    bytes encoded_vectors = 2;
  }

走神的阿圆's avatar
走神的阿圆 已提交
37 38 39 40 41 42 43 44 45 46 47 48 49
  message Histogram {
    repeated double hist = 1 [packed = true];
    repeated double bin_edges = 2 [packed = true];
  }

  message PRCurve {
    repeated int64 TP = 1 [packed = true];
    repeated int64 FP = 2 [packed = true];
    repeated int64 TN = 3 [packed = true];
    repeated int64 FN = 4 [packed = true];
    repeated double precision = 5;
    repeated double recall = 6;
  }
P
Peter Pan 已提交
50 51 52 53 54 55 56 57 58
  
  message ROC_Curve {
    repeated int64 TP = 1 [packed = true];
    repeated int64 FP = 2 [packed = true];
    repeated int64 TN = 3 [packed = true];
    repeated int64 FN = 4 [packed = true];
    repeated double tpr = 5;
    repeated double fpr = 6;
  }
59

走神的阿圆's avatar
走神的阿圆 已提交
60 61 62 63 64 65 66 67 68 69 70 71 72 73
  message HParam {
    message HparamInfo {
      oneof type {
          int64 int_value = 1;
          double float_value = 2;
          string string_value = 3;
      };
      string name = 4;
    }
    repeated HparamInfo hparamInfos = 1;
    repeated HparamInfo metricInfos = 2;
    string name = 3;
  }

走神的阿圆's avatar
走神的阿圆 已提交
74 75 76 77
  message MetaData {
    string display_name = 1;
  }

78 79 80 81 82 83 84 85 86
  message Value {
    int64 id = 1;
    string tag = 2;
    int64 timestamp = 3;
    oneof one_value {
      float value = 4;
      Image image = 5;
      Audio audio = 6;
      Embeddings embeddings = 7;
87
      Histogram histogram = 8;
走神的阿圆's avatar
走神的阿圆 已提交
88
      PRCurve pr_curve = 9;
走神的阿圆's avatar
走神的阿圆 已提交
89
      MetaData meta_data = 10;
P
Peter Pan 已提交
90
      ROC_Curve roc_curve = 11;
走神的阿圆's avatar
走神的阿圆 已提交
91
      Text text = 12;
走神的阿圆's avatar
走神的阿圆 已提交
92
      HParam hparam = 13;
93 94 95 96 97 98
    }
  }

  repeated Value values = 1;
  //RecordMetaData meta_data = 2;
}