Interface Stratification
-
- All Known Implementing Classes:
AbstractStratification
,DefaultStratification
,PassThrough
public interface Stratification
Interface for schemes that stratify data.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
reset()
Resets the scheme.<T> List<Binnable<T>>
stratify(List<Binnable<T>> data, int folds)
Stratifies the list of binnable data, using the value of the items.
-
-
-
Method Detail
-
reset
void reset()
Resets the scheme.
-
stratify
<T> List<Binnable<T>> stratify(List<Binnable<T>> data, int folds)
Stratifies the list of binnable data, using the value of the items. Creates copy of list, then sorts list items according to their values. Based on Weka's Instances.stratify(int) method.- Type Parameters:
T
- the payload type- Parameters:
data
- the data to stratifyfolds
- the number of folds- Returns:
- the stratified data
-
-