public class MSEHistogram extends ImpurityHistogram implements ImpurityComputer<BootstrappedVector,MSEHistogram>
bucketIds, featureId
Constructor and Description |
---|
MSEHistogram(int sampleId,
BucketMeta bucketMeta)
Creates an instance of MSEHistogram.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(BootstrappedVector vector)
Add object to histogram.
|
Set<Integer> |
buckets() |
Optional<NodeSplit> |
findBestSplit()
Returns best split point computed on histogram if it exists.
|
Optional<Double> |
getValue(Integer bucketId) |
boolean |
isEqualTo(MSEHistogram other)
Compares histogram with other and returns true if they are equals
|
MSEHistogram |
plus(MSEHistogram other) |
checkAndReturnSplitValue
public MSEHistogram(int sampleId, BucketMeta bucketMeta)
sampleId
- Sample id.bucketMeta
- Bucket meta.public void addElement(BootstrappedVector vector)
addElement
in interface Histogram<BootstrappedVector,MSEHistogram>
vector
- Value.public MSEHistogram plus(MSEHistogram other)
plus
in interface Histogram<BootstrappedVector,MSEHistogram>
other
- Other histogram.public Set<Integer> buckets()
buckets
in interface Histogram<BootstrappedVector,MSEHistogram>
public Optional<Double> getValue(Integer bucketId)
getValue
in interface Histogram<BootstrappedVector,MSEHistogram>
bucketId
- Bucket id.public Optional<NodeSplit> findBestSplit()
findBestSplit
in interface ImpurityComputer<BootstrappedVector,MSEHistogram>
public boolean isEqualTo(MSEHistogram other)
isEqualTo
in interface Histogram<BootstrappedVector,MSEHistogram>
other
- Other histogram.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024