Home > Transforms Nodes > JSON Query > Sample
A Sample node enables you to sample data in one of the following ways:
Random Sample: A sample in which every element of the data set has an equal chance of being selected.
Top N Sample: The default sample that selects the first N values.
Stratified Sample: A sample is created as follows:
First, the data set is divided into disjoint subsets or strata.
Then, a random sample is taken from each subsets.
This technique is used when the distribution of target values is skewed greatly.
For example, the response to a marketing campaign may have a positive target value of 1% of the time or less.
Sampling nested data is best done with a Case ID.
The Sample node can run in parallel.
This section has the following topics: