public class BaggingUpstreamTransformer extends Object implements UpstreamTransformer
Constructor and Description |
---|
BaggingUpstreamTransformer(long seed,
double subsampleRatio)
Construct instance of this transformer with a given subsample ratio.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> UpstreamTransformerBuilder |
builder(double subsampleRatio,
int mdlIdx)
Get builder of
BaggingUpstreamTransformer for a model with a specified index in ensemble. |
Stream<UpstreamEntry> |
transform(Stream<UpstreamEntry> upstream)
Transform upstream.
|
public BaggingUpstreamTransformer(long seed, double subsampleRatio)
seed
- Seed used for generating poisson distribution which in turn used to make subsamples.subsampleRatio
- Subsample ratio.public static <K,V> UpstreamTransformerBuilder builder(double subsampleRatio, int mdlIdx)
BaggingUpstreamTransformer
for a model with a specified index in ensemble.K
- Type of upstream keys.V
- Type of upstream values.subsampleRatio
- Subsample ratio.mdlIdx
- Index of model in ensemble.BaggingUpstreamTransformer
.public Stream<UpstreamEntry> transform(Stream<UpstreamEntry> upstream)
transform
in interface UpstreamTransformer
upstream
- Upstream to transform.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024