public sealed class SamplingStrategy : IMessage<SamplingStrategy>, IEquatable<SamplingStrategy>, IDeepCloneable<SamplingStrategy>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1 API class SamplingStrategy.
Sampling Strategy for logging, can be for both training and prediction
dataset.
[[["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-20 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eSamplingStrategy\u003c/code\u003e class within the Google Cloud AI Platform v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSamplingStrategy\u003c/code\u003e class, used for training and prediction dataset logging, is part of the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1\u003c/code\u003e namespace and implemented as version 2.17.0, but shows a history of versions from 1.0.0 up to 3.22.0 (latest).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSamplingStrategy\u003c/code\u003e implements multiple 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\u003eSamplingStrategy\u003c/code\u003e class contains a \u003ccode\u003eRandomSampleConfig\u003c/code\u003e property, allowing for configuration of random sampling strategies, with future support for more strategies planned.\u003c/p\u003e\n"],["\u003cp\u003eThe class has 2 constructors: \u003ccode\u003eSamplingStrategy()\u003c/code\u003e and \u003ccode\u003eSamplingStrategy(SamplingStrategy other)\u003c/code\u003e and provides a parameter \u003ccode\u003eother\u003c/code\u003e of the \u003ccode\u003eSamplingStrategy\u003c/code\u003e type for creating a new instance.\u003c/p\u003e\n"]]],[],null,[]]