Skip to content

Commit

Permalink
add map of confidence ts (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miro001 authored Oct 15, 2024
1 parent 328ff9b commit aa4cce4
Show file tree
Hide file tree
Showing 25 changed files with 2,147 additions and 959 deletions.
84 changes: 44 additions & 40 deletions gen/csharp/Asgt/Modelregistry/V1/ModelRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static ModelRegistryReflection() {
"dHlwZS9tb2RlbC5wcm90bxoaYXNndC90eXBlL3ByZWRpY3Rpb24ucHJvdG8a",
"GGFzZ3QvdHlwZS9yZXZpc2lvbi5wcm90bxoeYXNndC90eXBlL3RhcmdldF9t",
"ZXRyaWNzLnByb3RvGiBhc2d0L3R5cGUvdHJhaW5fc3RhdGlzdGljcy5wcm90",
"bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIoYFChRSZWdpc3Rlck1v",
"bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIskGChRSZWdpc3Rlck1v",
"ZGVsUmVxdWVzdBIsCgdkYXRhc2V0GAEgASgLMhIuYXNndC50eXBlLkRhdGFz",
"ZXRSB2RhdGFzZXQSLwoIcmV2aXNpb24YAiABKAsyEy5hc2d0LnR5cGUuUmV2",
"aXNpb25SCHJldmlzaW9uEiMKDW1vZGVsX3ZlcnNpb24YAyABKANSDG1vZGVs",
Expand All @@ -42,30 +42,34 @@ static ModelRegistryReflection() {
"c3RhdGlzdGljcxgHIAEoCzIaLmFzZ3QudHlwZS5UcmFpblN0YXRpc3RpY3NS",
"D3RyYWluU3RhdGlzdGljcxJLChJkYXRhc2V0X3N0YXRpc3RpY3MYCCABKAsy",
"HC5hc2d0LnR5cGUuRGF0YXNldFN0YXRpc3RpY3NSEWRhdGFzZXRTdGF0aXN0",
"aWNzEkoKFWNvbmZpZGVuY2VfdGhyZXNob2xkcxgJIAMoCzIVLmFzZ3QudHlw",
"ZS5Db25maWRlbmNlUhRjb25maWRlbmNlVG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b25zZRJ0ChNHZXRDdXJyZW50RnVsbE1vZGVsEi0uYXNn",
"dC5tb2RlbHJlZ2lzdHJ5LnYxLkdldEN1cnJlbnRNb2RlbFJlcXVlc3QaLi5h",
"c2d0Lm1vZGVscmVnaXN0cnkudjEuR2V0Q3VycmVudE1vZGVsUmVzcG9uc2VC",
"8wEKHmFpLnZpc21hLmFzZ3QubW9kZWxyZWdpc3RyeS52MUISTW9kZWxSZWdp",
"c3RyeVByb3RvUAFaR2dpdGh1Yi5jb20vZS1jb25vbWljL3ZtbGFwaXMvZ2Vu",
"L2dvL2FzZ3QvbW9kZWxyZWdpc3RyeS92MTttb2RlbHJlZ2lzdHJ5ogIDQU1Y",
"qgIVQXNndC5Nb2RlbHJlZ2lzdHJ5LlYxygIVQXNndFxNb2RlbHJlZ2lzdHJ5",
"XFYx4gIhQXNndFxNb2RlbHJlZ2lzdHJ5XFYxXEdQQk1ldGFkYXRh6gIXQXNn",
"dDo6TW9kZWxyZWdpc3RyeTo6VjFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Asgt.Type.DatasetReflection.Descriptor, global::Asgt.Type.DatasetStatisticsReflection.Descriptor, global::Asgt.Type.ModelReflection.Descriptor, global::Asgt.Type.PredictionReflection.Descriptor, global::Asgt.Type.RevisionReflection.Descriptor, global::Asgt.Type.TargetMetricsReflection.Descriptor, global::Asgt.Type.TrainStatisticsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Modelregistry.V1.RegisterModelRequest), global::Asgt.Modelregistry.V1.RegisterModelRequest.Parser, new[]{ "Dataset", "Revision", "ModelVersion", "Metrics", "TargetMetrics", "InputType", "TrainStatistics", "DatasetStatistics", "ConfidenceThresholds" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Modelregistry.V1.RegisterModelRequest), global::Asgt.Modelregistry.V1.RegisterModelRequest.Parser, new[]{ "Dataset", "Revision", "ModelVersion", "Metrics", "TargetMetrics", "InputType", "TrainStatistics", "DatasetStatistics", "TargetToConfidenceThresholds" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Modelregistry.V1.GetCurrentModelRequest), global::Asgt.Modelregistry.V1.GetCurrentModelRequest.Parser, new[]{ "Dataset" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Asgt.Modelregistry.V1.GetCurrentModelResponse), global::Asgt.Modelregistry.V1.GetCurrentModelResponse.Parser, new[]{ "Model" }, null, null, null, null)
}));
Expand Down Expand Up @@ -116,7 +120,7 @@ public RegisterModelRequest(RegisterModelRequest other) : this() {
inputType_ = other.inputType_;
trainStatistics_ = other.trainStatistics_ != null ? other.trainStatistics_.Clone() : null;
datasetStatistics_ = other.datasetStatistics_ != null ? other.datasetStatistics_.Clone() : null;
confidenceThresholds_ = other.confidenceThresholds_.Clone();
targetToConfidenceThresholds_ = other.targetToConfidenceThresholds_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -220,15 +224,15 @@ public long ModelVersion {
}
}

/// <summary>Field number for the "confidence_thresholds" field.</summary>
public const int ConfidenceThresholdsFieldNumber = 9;
private static readonly pb::FieldCodec<global::Asgt.Type.Confidence> _repeated_confidenceThresholds_codec
= pb::FieldCodec.ForMessage(74, global::Asgt.Type.Confidence.Parser);
private readonly pbc::RepeatedField<global::Asgt.Type.Confidence> confidenceThresholds_ = new pbc::RepeatedField<global::Asgt.Type.Confidence>();
/// <summary>Field number for the "target_to_confidence_thresholds" field.</summary>
public const int TargetToConfidenceThresholdsFieldNumber = 10;
private static readonly pbc::MapField<string, global::Asgt.Type.ConfidenceThresholds>.Codec _map_targetToConfidenceThresholds_codec
= new pbc::MapField<string, global::Asgt.Type.ConfidenceThresholds>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Asgt.Type.ConfidenceThresholds.Parser), 82);
private readonly pbc::MapField<string, global::Asgt.Type.ConfidenceThresholds> targetToConfidenceThresholds_ = new pbc::MapField<string, global::Asgt.Type.ConfidenceThresholds>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Asgt.Type.Confidence> ConfidenceThresholds {
get { return confidenceThresholds_; }
public pbc::MapField<string, global::Asgt.Type.ConfidenceThresholds> TargetToConfidenceThresholds {
get { return targetToConfidenceThresholds_; }
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Expand All @@ -254,7 +258,7 @@ public bool Equals(RegisterModelRequest other) {
if (InputType != other.InputType) return false;
if (!object.Equals(TrainStatistics, other.TrainStatistics)) return false;
if (!object.Equals(DatasetStatistics, other.DatasetStatistics)) return false;
if(!confidenceThresholds_.Equals(other.confidenceThresholds_)) return false;
if (!TargetToConfidenceThresholds.Equals(other.TargetToConfidenceThresholds)) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -270,7 +274,7 @@ public override int GetHashCode() {
if (InputType != global::Asgt.Type.Model.Types.InputType.FeatureTensors) hash ^= InputType.GetHashCode();
if (trainStatistics_ != null) hash ^= TrainStatistics.GetHashCode();
if (datasetStatistics_ != null) hash ^= DatasetStatistics.GetHashCode();
hash ^= confidenceThresholds_.GetHashCode();
hash ^= TargetToConfidenceThresholds.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -315,7 +319,7 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(66);
output.WriteMessage(DatasetStatistics);
}
confidenceThresholds_.WriteTo(output, _repeated_confidenceThresholds_codec);
targetToConfidenceThresholds_.WriteTo(output, _map_targetToConfidenceThresholds_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand Down Expand Up @@ -352,7 +356,7 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(66);
output.WriteMessage(DatasetStatistics);
}
confidenceThresholds_.WriteTo(ref output, _repeated_confidenceThresholds_codec);
targetToConfidenceThresholds_.WriteTo(ref output, _map_targetToConfidenceThresholds_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand Down Expand Up @@ -383,7 +387,7 @@ public int CalculateSize() {
if (datasetStatistics_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(DatasetStatistics);
}
size += confidenceThresholds_.CalculateSize(_repeated_confidenceThresholds_codec);
size += targetToConfidenceThresholds_.CalculateSize(_map_targetToConfidenceThresholds_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand Down Expand Up @@ -428,7 +432,7 @@ public void MergeFrom(RegisterModelRequest other) {
}
DatasetStatistics.MergeFrom(other.DatasetStatistics);
}
confidenceThresholds_.Add(other.confidenceThresholds_);
targetToConfidenceThresholds_.MergeFrom(other.targetToConfidenceThresholds_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -488,8 +492,8 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(DatasetStatistics);
break;
}
case 74: {
confidenceThresholds_.AddEntriesFrom(input, _repeated_confidenceThresholds_codec);
case 82: {
targetToConfidenceThresholds_.AddEntriesFrom(input, _map_targetToConfidenceThresholds_codec);
break;
}
}
Expand Down Expand Up @@ -551,8 +555,8 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(DatasetStatistics);
break;
}
case 74: {
confidenceThresholds_.AddEntriesFrom(ref input, _repeated_confidenceThresholds_codec);
case 82: {
targetToConfidenceThresholds_.AddEntriesFrom(ref input, _map_targetToConfidenceThresholds_codec);
break;
}
}
Expand Down
Loading

0 comments on commit aa4cce4

Please sign in to comment.