public sealed class SampledShapleyAttribution : IMessage<SampledShapleyAttribution>, IEquatable<SampledShapleyAttribution>, IDeepCloneable<SampledShapleyAttribution>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class SampledShapleyAttribution.
An attribution method that approximates Shapley values for features that
contribute to the label being predicted. A sampling strategy is used to
approximate the value rather than considering all subsets of features.
[[["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-28 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eSampledShapleyAttribution\u003c/code\u003e class in the Vertex AI v1beta1 API, specifically within the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSampledShapleyAttribution\u003c/code\u003e is an attribution method that uses a sampling strategy to approximate Shapley values for features contributing to a predicted label.\u003c/p\u003e\n"],["\u003cp\u003eThe class 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, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a \u003ccode\u003ePathCount\u003c/code\u003e property, which determines the number of feature permutations used in the Shapley value approximation, with a valid range between 1 and 50.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors provided for \u003ccode\u003eSampledShapleyAttribution\u003c/code\u003e, one default and one that clones from an existing instance of the class.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class SampledShapleyAttribution (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.SampledShapleyAttribution)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.SampledShapleyAttribution) \n\n public sealed class SampledShapleyAttribution : IMessage\u003cSampledShapleyAttribution\u003e, IEquatable\u003cSampledShapleyAttribution\u003e, IDeepCloneable\u003cSampledShapleyAttribution\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class SampledShapleyAttribution.\n\nAn attribution method that approximates Shapley values for features that\ncontribute to the label being predicted. A sampling strategy is used to\napproximate the value rather than considering all subsets of features. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SampledShapleyAttribution \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SampledShapleyAttribution](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SampledShapleyAttribution), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SampledShapleyAttribution](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SampledShapleyAttribution), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SampledShapleyAttribution](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SampledShapleyAttribution), [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### SampledShapleyAttribution()\n\n public SampledShapleyAttribution()\n\n### SampledShapleyAttribution(SampledShapleyAttribution)\n\n public SampledShapleyAttribution(SampledShapleyAttribution other)\n\nProperties\n----------\n\n### PathCount\n\n public int PathCount { get; set; }\n\nRequired. The number of feature permutations to consider when approximating\nthe Shapley values.\n\nValid range of its value is \\[1, 50\\], inclusively."]]