Package org.tribuo.transform
Interface TransformStatistics
- All Known Implementing Classes:
SimpleTransform
public interface TransformStatistics
An interface for the statistics that need to be
collected for a specific
Transformation
on
a single feature.
TransformStatistics are purely a runtime collection, they should not be persisted, nor can be directly constructed.
-
Method Summary
Modifier and TypeMethodDescriptionGenerates the appropriateTransformer
from the collected statistics.void
Deprecated.in 4.1 as it's unnecessary.void
observeSparse
(int count) Observescount
sparse values.void
observeValue
(double value) Observes a value and updates the statistics.
-
Method Details
-
observeValue
void observeValue(double value) Observes a value and updates the statistics.- Parameters:
value
- The value to observe.
-
observeSparse
Deprecated.in 4.1 as it's unnecessary.Observes a sparse (i.e., zero) value. -
observeSparse
void observeSparse(int count) Observescount
sparse values.- Parameters:
count
- The number of sparse values.
-
generateTransformer
Transformer generateTransformer()Generates the appropriateTransformer
from the collected statistics.- Returns:
- The Transformer.
-