K
- Type of a key in upstream data.V
- Type of a value in upstream data.C
- type of a partition context.public class SimpleLabeledDatasetDataBuilder<K,V,C extends Serializable> extends Object implements PartitionDataBuilder<K,V,C,SimpleLabeledDatasetData>
data
builder that makes SimpleLabeledDatasetData
.Constructor and Description |
---|
SimpleLabeledDatasetDataBuilder(IgniteBiFunction<K,V,Vector> featureExtractor,
IgniteBiFunction<K,V,double[]> lbExtractor)
Constructs a new instance of partition
data builder that makes SimpleLabeledDatasetData . |
Modifier and Type | Method and Description |
---|---|
SimpleLabeledDatasetData |
build(Iterator<UpstreamEntry<K,V>> upstreamData,
long upstreamDataSize,
C ctx)
Builds a new partition
data from a partition upstream data and partition context |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
public SimpleLabeledDatasetDataBuilder(IgniteBiFunction<K,V,Vector> featureExtractor, IgniteBiFunction<K,V,double[]> lbExtractor)
data
builder that makes SimpleLabeledDatasetData
.featureExtractor
- Function that extracts features from an upstream
data.lbExtractor
- Function that extracts labels from an upstream
data.public SimpleLabeledDatasetData build(Iterator<UpstreamEntry<K,V>> upstreamData, long upstreamDataSize, C ctx)
data
from a partition upstream
data and partition context
build
in interface PartitionDataBuilder<K,V,C extends Serializable,SimpleLabeledDatasetData>
upstreamData
- Partition upstream
data.upstreamDataSize
- Partition upstream
data size.ctx
- Partition context
.data
.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019