[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis documentation is for the \u003ccode\u003eMetric\u003c/code\u003e class within the Google Cloud AI Platform v1beta1 API, specifically version 1.0.0-beta21, the latest version of the API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetric\u003c/code\u003e class is used for dataset-level evaluation and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetric\u003c/code\u003e class offers constructors for creating new instances and for cloning existing ones, as well as inheriting several members from the \u003ccode\u003eobject\u003c/code\u003e class such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties to specify various metric types, such as \u003ccode\u003eBleuSpec\u003c/code\u003e, \u003ccode\u003eExactMatchSpec\u003c/code\u003e, \u003ccode\u003ePairwiseMetricSpec\u003c/code\u003e, \u003ccode\u003ePointwiseMetricSpec\u003c/code\u003e, \u003ccode\u003eRougeSpec\u003c/code\u003e, and \u003ccode\u003eAggregationMetrics\u003c/code\u003e, allowing for detailed metric configuration.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a \u003ccode\u003eMetricSpecCase\u003c/code\u003e property which will represent which kind of metric spec is being utilized for a given \u003ccode\u003eMetric\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class Metric (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Metric)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.Metric) \n\n public sealed class Metric : IMessage\u003cMetric\u003e, IEquatable\u003cMetric\u003e, IDeepCloneable\u003cMetric\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class Metric.\n\nThe metric used for dataset level evaluation. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Metric \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Metric](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Metric), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Metric](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Metric), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Metric](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Metric), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### Metric()\n\n public Metric()\n\n### Metric(Metric)\n\n public Metric(Metric other)\n\nProperties\n----------\n\n### AggregationMetrics\n\n public RepeatedField\u003cMetric.Types.AggregationMetric\u003e AggregationMetrics { get; }\n\nOptional. The aggregation metrics to use.\n\n### BleuSpec\n\n public BleuSpec BleuSpec { get; set; }\n\nSpec for bleu metric.\n\n### ExactMatchSpec\n\n public ExactMatchSpec ExactMatchSpec { get; set; }\n\nSpec for exact match metric.\n\n### MetricSpecCase\n\n public Metric.MetricSpecOneofCase MetricSpecCase { get; }\n\n### PairwiseMetricSpec\n\n public PairwiseMetricSpec PairwiseMetricSpec { get; set; }\n\nSpec for pairwise metric.\n\n### PointwiseMetricSpec\n\n public PointwiseMetricSpec PointwiseMetricSpec { get; set; }\n\nSpec for pointwise metric.\n\n### RougeSpec\n\n public RougeSpec RougeSpec { get; set; }\n\nSpec for rouge metric."]]