public class EqualSizeDiscretizer extends AbstractDiscretizer
| Constructor and Description |
|---|
EqualSizeDiscretizer()
creates a
PercentileMedianDiscretizer which creates intervals, that are the same size as there are
number of intervals |
EqualSizeDiscretizer(int classSize)
creates a
PercentileMedianDiscretizer which creates intervals, that are the same size. |
| Modifier and Type | Method and Description |
|---|---|
protected List<DiscretizationTransition> |
fitCreateTransitions(Serializable[] values,
Double[] labels)
creates the
DiscretizationTransition of the values. |
apply, fit, fit, getDiscretizationTransitionsFromCutPoints, getTransitionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, getTransitionpublic EqualSizeDiscretizer()
PercentileMedianDiscretizer which creates intervals, that are the same size as there are
number of intervalspublic EqualSizeDiscretizer(int classSize)
PercentileMedianDiscretizer which creates intervals, that are the same size. In actual datasets
a minimum size of 30 is recommended by [Weiss, 2002]classSize - size of Intervals to be created. Might be changed slightly if values length is not divisible by itprotected List<DiscretizationTransition> fitCreateTransitions(Serializable[] values, Double[] labels)
DiscretizationTransition of the values. Each transition will have the same size. If no size
is given as a parameter in the constructor, a PKID will be created.fitCreateTransitions in class AbstractDiscretizervalues - the values to be fitted onlabels - the labels. != null, iff supervisedPercentileMedianDiscretizer. All will have the same length.Copyright © 2019 viadee Unternehmensberatung AG. All rights reserved.