public abstract class AbstractDiscretizer extends Object implements Discretizer
DiscretizationTransition| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDiscretizer(boolean isSupervised)
Constructs the instance
|
| Modifier and Type | Method and Description |
|---|---|
Double |
apply(Serializable serializable) |
void |
fit(Serializable[] values)
Fits the discretizer and passes all values that it might get asked to discretize
|
void |
fit(Serializable[] values,
Double[] labels)
Fits the discretizer and passes all values that it might get asked to discretize
|
protected abstract List<DiscretizationTransition> |
fitCreateTransitions(Serializable[] values,
Double[] labels)
Fits on the data
|
protected List<DiscretizationTransition> |
getDiscretizationTransitionsFromCutPoints(List<Double> actualCutPoints,
Double min,
Double max) |
Collection<DiscretizationTransition> |
getTransitions()
This method returns all stored transitions
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, getTransitionprotected AbstractDiscretizer(boolean isSupervised)
isSupervised - true, if this is a supervised discretizerpublic Collection<DiscretizationTransition> getTransitions()
DiscretizergetTransitions in interface DiscretizerDiscretizationTransitionspublic void fit(Serializable[] values)
values - the domainpublic void fit(Serializable[] values, Double[] labels)
Discretizerfit in interface Discretizervalues - the domainlabels - the labels or null, iff unsupervised. Caution: labels are required to be discretized firstprotected abstract List<DiscretizationTransition> fitCreateTransitions(Serializable[] values, Double[] labels)
values - the values to be fitted onlabels - the labels. != null, iff supervisedCollection containing the DiscretizationTransitionspublic Double apply(Serializable serializable)
apply in interface Function<Serializable,Double>Copyright © 2019 viadee Unternehmensberatung AG. All rights reserved.