[[["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\u003eThe \u003ccode\u003eSampleConfig\u003c/code\u003e class in the Vertex AI v1beta1 API is designed for configuring active learning data sampling, selecting data batches for labeling iterations.\u003c/p\u003e\n"],["\u003cp\u003eIt 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 the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eInitialBatchSamplePercentage\u003c/code\u003e and \u003ccode\u003eFollowingBatchSamplePercentage\u003c/code\u003e, which control the percentage of data labeled in the first and subsequent batches, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers methods for customizing data sampling through the \u003ccode\u003eSampleStrategy\u003c/code\u003e property, determining how data is chosen for labeling in each batch.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a parameterless default, and a constructor which takes another \u003ccode\u003eSampleConfig\u003c/code\u003e as a parameter to copy.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class SampleConfig (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.SampleConfig)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.SampleConfig) \n\n public sealed class SampleConfig : IMessage\u003cSampleConfig\u003e, IEquatable\u003cSampleConfig\u003e, IDeepCloneable\u003cSampleConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class SampleConfig.\n\nActive learning data sampling config. For every active learning labeling\niteration, it will select a batch of data based on the sampling strategy. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SampleConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SampleConfig](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SampleConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SampleConfig](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SampleConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SampleConfig](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.SampleConfig), [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### SampleConfig()\n\n public SampleConfig()\n\n### SampleConfig(SampleConfig)\n\n public SampleConfig(SampleConfig other)\n\nProperties\n----------\n\n### FollowingBatchSamplePercentage\n\n public int FollowingBatchSamplePercentage { get; set; }\n\nThe percentage of data needed to be labeled in each following batch\n(except the first batch).\n\n### FollowingBatchSampleSizeCase\n\n public SampleConfig.FollowingBatchSampleSizeOneofCase FollowingBatchSampleSizeCase { get; }\n\n### HasFollowingBatchSamplePercentage\n\n public bool HasFollowingBatchSamplePercentage { get; }\n\nGets whether the \"following_batch_sample_percentage\" field is set\n\n### HasInitialBatchSamplePercentage\n\n public bool HasInitialBatchSamplePercentage { get; }\n\nGets whether the \"initial_batch_sample_percentage\" field is set\n\n### InitialBatchSamplePercentage\n\n public int InitialBatchSamplePercentage { get; set; }\n\nThe percentage of data needed to be labeled in the first batch.\n\n### InitialBatchSampleSizeCase\n\n public SampleConfig.InitialBatchSampleSizeOneofCase InitialBatchSampleSizeCase { get; }\n\n### SampleStrategy\n\n public SampleConfig.Types.SampleStrategy SampleStrategy { get; set; }\n\nField to choose sampling strategy. Sampling strategy will decide which data\nshould be selected for human labeling in every batch."]]