Uses of Class
adams.data.binning.Binnable
-
-
Uses of Binnable in adams.data.binning
Fields in adams.data.binning with type parameters of type Binnable Modifier and Type Field Description protected List<Binnable<T>>
BinnableGroup. m_Members
the grouped items.protected List<Binnable<T>>
Bin. m_Objects
the binnable objects that belong to this bin.Methods in adams.data.binning that return types with arguments of type Binnable Modifier and Type Method Description List<Binnable<T>>
Bin. get()
Returns the list of objects in the bin.List<Binnable<T>>
BinnableGroup. get()
Returns the list of members.static List<Binnable<DataRow>>
BinnableDataset. toBinnableUsingClass(SpreadSheet data, int index)
Turns Rows into a list of binnables using the class value.static List<Binnable<weka.core.Instance>>
BinnableInstances. toBinnableUsingClass(weka.core.Instances data)
Turns Instances into a list of binnables using the class value.static List<Binnable<DataRow>>
BinnableDataset. toBinnableUsingIndex(SpreadSheet data)
Turns Rows into a list of binnables using the data row index.static List<Binnable<File>>
BinnableFiles. toBinnableUsingIndex(File[] data)
Turns files into a list of binnables using the array index.static List<Binnable<String>>
BinnableFiles. toBinnableUsingIndex(String[] data)
Turns strings into a list of binnables using the array index.static List<Binnable<weka.core.Instance>>
BinnableInstances. toBinnableUsingIndex(weka.core.Instances data)
Turns Instances into a list of binnables using the instance index.Methods in adams.data.binning with parameters of type Binnable Modifier and Type Method Description void
Bin. add(Binnable<T> object)
Adds the object to the list of objects belong to this bin.void
BinnableGroup. add(Binnable<T> member)
Adds the member.String
BinnableDataset.StringAttributeGroupExtractor. extractGroup(Binnable<DataRow> item)
Extracts the group from the binnable object.String
BinnableFiles.FileGroupExtractor. extractGroup(Binnable<String> item)
Extracts the group from the binnable object.String
BinnableInstances.NumericClassGroupExtractor. extractGroup(Binnable<weka.core.Instance> item)
Extracts the group from the binnable object.String
BinnableInstances.StringAttributeGroupExtractor. extractGroup(Binnable<weka.core.Instance> item)
Extracts the group from the binnable object.boolean
Bin. fits(Binnable<T> object)
Checks whether the object belongs to this bin.Method parameters in adams.data.binning with type arguments of type Binnable Modifier and Type Method Description void
Bin. addAll(Collection<Binnable<T>> objects)
Adds the objects to the list of objects belong to this bin.void
BinnableGroup. addAll(Collection<Binnable<T>> members)
Adds all the members.static Dataset
BinnableDataset. toDataset(List<Binnable<DataRow>> list)
Turns a binnable list back into Rows.static File[]
BinnableFiles. toFileArray(List<Binnable<File>> list)
Turns a binnable list back into a file array.static weka.core.Instances
BinnableInstances. toInstances(List<Binnable<weka.core.Instance>> list)
Turns a binnable list back into Instances.static SpreadSheet
BinnableDataset. toSpreadSheet(List<Binnable<DataRow>> list)
Turns a binnable list back into Rows.static String[]
BinnableFiles. toStringArray(List<Binnable<String>> list)
Turns a binnable list back into a string array.Constructor parameters in adams.data.binning with type arguments of type Binnable Constructor Description BinnableGroup(String id, List<Binnable<T>> members)
Initializes the group with the ID and members. -
Uses of Binnable in adams.data.binning.algorithm
Method parameters in adams.data.binning.algorithm with type arguments of type Binnable Modifier and Type Method Description protected <T> String
AbstractBinningAlgorithm. check(List<Binnable<T>> objects)
Hook method for performing checks before binning.protected <T> String
ManualBinning. check(List<Binnable<T>> objects)
Hook method for performing checks before binning.protected abstract <T> List<Bin<T>>
AbstractBinningAlgorithm. doGenerateBins(List<Binnable<T>> objects)
Performs the actual bin generation on the provided objects.protected <T> List<Bin<T>>
AbstractEqualWidthBinningAlgorithm. doGenerateBins(List<Binnable<T>> objects, double binWidth)
Generates bins with the specified width.protected <T> List<Bin<T>>
AbstractEqualWidthBinningAlgorithm. doGenerateBins(List<Binnable<T>> objects, int numBins)
Generates equal-width bins.protected <T> List<Bin<T>>
DensityBinning. doGenerateBins(List<Binnable<T>> objects)
Performs the actual bin generation on the provided objects.protected <T> List<Bin<T>>
FreedmanDiaconisChoiceBinning. doGenerateBins(List<Binnable<T>> objects)
Performs the actual bin generation on the provided objects.protected <T> List<Bin<T>>
FrequencyBinning. doGenerateBins(List<Binnable<T>> objects)
Performs the actual bin generation on the provided objects.protected <T> List<Bin<T>>
ManualBinning. doGenerateBins(List<Binnable<T>> objects)
Performs the actual bin generation on the provided objects.protected <T> List<Bin<T>>
NoBinning. doGenerateBins(List<Binnable<T>> objects)
Performs the actual bin generation on the provided objects.protected <T> List<Bin<T>>
RiceRuleBinning. doGenerateBins(List<Binnable<T>> objects)
Performs the actual bin generation on the provided objects.protected <T> List<Bin<T>>
ScottsNormalReferenceRuleBinning. doGenerateBins(List<Binnable<T>> objects)
Performs the actual bin generation on the provided objects.protected <T> List<Bin<T>>
SquareRootChoiceBinning. doGenerateBins(List<Binnable<T>> objects)
Performs the actual bin generation on the provided objects.protected <T> List<Bin<T>>
SturgesFormulaBinning. doGenerateBins(List<Binnable<T>> objects)
Performs the actual bin generation on the provided objects.<T> List<Bin<T>>
AbstractBinningAlgorithm. generateBins(List<Binnable<T>> objects)
Performs the bin generation on the provided objects.<T> List<Bin<T>>
BinningAlgorithm. generateBins(List<Binnable<T>> objects)
Performs the bin generation on the provided objects.protected <T> com.github.fracpete.javautils.struct.Struct2<Double,Double>
AbstractBinningAlgorithm. getMinMax(List<Binnable<T>> objects)
Determines the min/max from the binnable objects. -
Uses of Binnable in adams.data.binning.operation
Methods in adams.data.binning.operation that return types with arguments of type Binnable Modifier and Type Method Description static <T> List<Binnable<T>>
Wrapping. addTmpIndex(List<Binnable<T>> data)
Adds the list index under a temporary keyWrapping.TMP_INDEX
.static <T> List<Binnable<T>>
Copy. copyData(List<Binnable<T>> data, Copy.CopyType type)
Generates a copy.static <T> List<Binnable<T>>
Discretize. discretize(List<Bin<T>> bins)
Uses the bin list index as new value for the binnable items.static <T> List<Binnable<T>>
Bins. flatten(List<Bin<T>> bins)
Flattens the bins back into a list of binnables in the order of the bins.static <T> List<Binnable<T>>
Sort. group(List<Binnable<T>> data)
Groups the binnable data in-place using its values.static <T> List<Binnable<T>>
Randomize. randomizeData(List<Binnable<T>> data, long seed)
Randomizes the binnable data in-place.static <T> List<Binnable<T>>
Randomize. randomizeData(List<Binnable<T>> data, Random random)
Randomizes the binnable data in-place.static <T> List<Binnable<T>>
Wrapping. removeTmpIndex(List<Binnable<T>> data)
Removes the list index under a temporary keyWrapping.TMP_INDEX
.static <T> List<Binnable<T>>
Sort. sort(List<Binnable<T>> data)
Sorts the binnable data in-place using its values.static <T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
Split. split(List<Binnable<T>> data, double percentage)
Splits the data into two, using the percentage for the first lot of data.static <T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
Split. split(List<Binnable<T>> data, double percentage)
Splits the data into two, using the percentage for the first lot of data.static <T> List<Binnable<T>>
Stratify. stratify(List<Binnable<T>> data, int folds)
Stratifies the list of binnable data, using the value of the items.static <T> List<Binnable<T>>
Grouping. ungroup(BinnableGroup<T> data)
Unravels the grouped binnable items into a single list again.static <T> List<Binnable<T>>
Grouping. ungroupMap(Map<String,BinnableGroup<T>> data, boolean sortByGroup)
Unravels the grouped binnable items into a single list again.static List<Binnable<Integer>>
Wrapping. wrap(double[] values)
Wraps the double array in binnable objects, using the index as payload.static List<Binnable<Integer>>
Wrapping. wrap(float[] values)
Wraps the float array in binnable objects, using the index as payload.static List<Binnable<Integer>>
Wrapping. wrap(Number[] values)
Wraps the double array in binnable objects, using the index as payload.static List<Binnable<Integer>>
Wrapping. wrap(Collection<Number> values)
Wraps the double array in binnable objects, using the index as payload.static <T> List<Binnable<T>>
Wrapping. wrap(Collection<T> values, Wrapping.BinValueExtractor<T> extractor)
Wraps the collection in binnable objects, using the extractor to determine the value for the binnable object.static <T> List<Binnable<T>>
Wrapping. wrap(T[] values, Wrapping.BinValueExtractor<T> extractor)
Wraps the array in binnable objects, using the extractor to determine the value for the binnable object.static <T> List<Binnable<BinnableGroup<T>>>
Wrapping. wrapGroups(Collection<BinnableGroup<T>> values, Wrapping.BinValueExtractor<T> extractor)
Wraps the collection of binnable group objects in binnable objects, using the extractor to determine the value for the binnable object (uses first item of group).Methods in adams.data.binning.operation with parameters of type Binnable Modifier and Type Method Description String
Grouping.GroupExtractor. extractGroup(Binnable<T> item)
Extracts the group from the binnable object.Method parameters in adams.data.binning.operation with type arguments of type Binnable Modifier and Type Method Description static <T> List<Binnable<T>>
Wrapping. addTmpIndex(List<Binnable<T>> data)
Adds the list index under a temporary keyWrapping.TMP_INDEX
.static <T> List<Binnable<T>>
Copy. copyData(List<Binnable<T>> data, Copy.CopyType type)
Generates a copy.static <T> gnu.trove.list.TIntList
Wrapping. getTmpIndices(List<Binnable<T>> data)
Collects indices stored underWrapping.TMP_INDEX
.protected static <T> com.github.fracpete.javautils.struct.Struct2<List<String>,Map<String,BinnableGroup<T>>>
Grouping. group(List<Binnable<T>> data, Grouping.GroupExtractor<T> extractor)
Combines the binnable items into groups based on the groups extracted.static <T> List<Binnable<T>>
Sort. group(List<Binnable<T>> data)
Groups the binnable data in-place using its values.static <T> List<BinnableGroup<T>>
Grouping. groupAsList(List<Binnable<T>> data, Grouping.GroupExtractor<T> extractor)
Combines the binnable items into groups based on the groups extracted.static <T> Map<String,BinnableGroup<T>>
Grouping. groupAsMap(List<Binnable<T>> data, Grouping.GroupExtractor<T> extractor)
Combines the binnable items into groups based on the groups extracted.static <T> com.github.fracpete.javautils.struct.Struct2<Double,Double>
Statistics. minMax(List<Binnable<T>> data)
Determines the min/max of the values.static <T> List<Binnable<T>>
Randomize. randomizeData(List<Binnable<T>> data, long seed)
Randomizes the binnable data in-place.static <T> List<Binnable<T>>
Randomize. randomizeData(List<Binnable<T>> data, Random random)
Randomizes the binnable data in-place.static <T> List<Binnable<T>>
Wrapping. removeTmpIndex(List<Binnable<T>> data)
Removes the list index under a temporary keyWrapping.TMP_INDEX
.static <T> List<Binnable<T>>
Sort. sort(List<Binnable<T>> data)
Sorts the binnable data in-place using its values.static <T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
Split. split(List<Binnable<T>> data, double percentage)
Splits the data into two, using the percentage for the first lot of data.static <T> List<Binnable<T>>
Stratify. stratify(List<Binnable<T>> data, int folds)
Stratifies the list of binnable data, using the value of the items.protected static <T> void
Sort. swap(List<Binnable<T>> list, int first, int second)
Swaps two elements in the list.static <T> double[]
Values. toDoubleArray(List<Binnable<T>> objects)
Turns the values of the binnable objects into a double array.static <T> Number[]
Values. toNumberArray(List<Binnable<T>> objects)
Turns the values of the binnable objects into a number array.static <T> List<T>
Wrapping. unwrap(List<Binnable<T>> data)
Unwraps the payloads from the binnable list. -
Uses of Binnable in adams.data.splitgenerator.generic.core
Methods in adams.data.splitgenerator.generic.core that return types with arguments of type Binnable Modifier and Type Method Description static <T> com.github.fracpete.javautils.struct.Struct2<gnu.trove.list.TIntList,List<Binnable<T>>>
Subset. extractIndicesAndBinnable(Subset<Binnable<BinnableGroup<T>>> subset)
Extracts row indices and binnable list from grouped subset.Method parameters in adams.data.splitgenerator.generic.core with type arguments of type Binnable Modifier and Type Method Description static <T> com.github.fracpete.javautils.struct.Struct2<gnu.trove.list.TIntList,List<Binnable<T>>>
Subset. extractIndicesAndBinnable(Subset<Binnable<BinnableGroup<T>>> subset)
Extracts row indices and binnable list from grouped subset. -
Uses of Binnable in adams.data.splitgenerator.generic.crossvalidation
Methods in adams.data.splitgenerator.generic.crossvalidation that return types with arguments of type Binnable Modifier and Type Method Description <T> List<FoldPair<Binnable<T>>>
CrossValidationGenerator. generate(List<Binnable<T>> data)
Generates cross-validation fold pairs.static <T> List<Binnable<T>>
CrossValidationGenerator. testCV(List<Binnable<T>> data, int numFolds, int numFold)
Creates the test set for one fold of a cross-validation on the dataset.static <T> List<Binnable<T>>
CrossValidationGenerator. trainCV(List<Binnable<T>> data, int numFolds, int numFold)
Creates the training set for one fold of a cross-validation on the dataset.static <T> List<Binnable<T>>
CrossValidationGenerator. trainCV(List<Binnable<T>> data, int numFolds, int numFold, Randomization random)
Creates the training set for one fold of a cross-validation on the dataset.Method parameters in adams.data.splitgenerator.generic.crossvalidation with type arguments of type Binnable Modifier and Type Method Description <T> List<FoldPair<Binnable<T>>>
CrossValidationGenerator. generate(List<Binnable<T>> data)
Generates cross-validation fold pairs.static <T> List<Binnable<T>>
CrossValidationGenerator. testCV(List<Binnable<T>> data, int numFolds, int numFold)
Creates the test set for one fold of a cross-validation on the dataset.static <T> List<Binnable<T>>
CrossValidationGenerator. trainCV(List<Binnable<T>> data, int numFolds, int numFold)
Creates the training set for one fold of a cross-validation on the dataset.static <T> List<Binnable<T>>
CrossValidationGenerator. trainCV(List<Binnable<T>> data, int numFolds, int numFold, Randomization random)
Creates the training set for one fold of a cross-validation on the dataset. -
Uses of Binnable in adams.data.splitgenerator.generic.randomization
Methods in adams.data.splitgenerator.generic.randomization that return types with arguments of type Binnable Modifier and Type Method Description protected abstract <T> List<Binnable<T>>
AbstractRandomization. doRandomize(List<Binnable<T>> data)
Randomizes the data.protected <T> List<Binnable<T>>
DefaultRandomization. doRandomize(List<Binnable<T>> data)
Randomizes the data.protected <T> List<Binnable<T>>
PassThrough. doRandomize(List<Binnable<T>> data)
Does not randomize the data.<T> List<Binnable<T>>
AbstractRandomization. randomize(List<Binnable<T>> data)
Randomizes the data.<T> List<Binnable<T>>
Randomization. randomize(List<Binnable<T>> data)
Randomizes the data.Method parameters in adams.data.splitgenerator.generic.randomization with type arguments of type Binnable Modifier and Type Method Description protected <T> String
AbstractRandomization. check(List<Binnable<T>> data)
Check method before performing randomization.protected abstract <T> List<Binnable<T>>
AbstractRandomization. doRandomize(List<Binnable<T>> data)
Randomizes the data.protected <T> List<Binnable<T>>
DefaultRandomization. doRandomize(List<Binnable<T>> data)
Randomizes the data.protected <T> List<Binnable<T>>
PassThrough. doRandomize(List<Binnable<T>> data)
Does not randomize the data.<T> List<Binnable<T>>
AbstractRandomization. randomize(List<Binnable<T>> data)
Randomizes the data.<T> List<Binnable<T>>
Randomization. randomize(List<Binnable<T>> data)
Randomizes the data. -
Uses of Binnable in adams.data.splitgenerator.generic.randomsplit
Methods in adams.data.splitgenerator.generic.randomsplit that return types with arguments of type Binnable Modifier and Type Method Description <T> SplitPair<Binnable<T>>
RandomSplitGenerator. generate(List<Binnable<T>> data)
Generates the split.Method parameters in adams.data.splitgenerator.generic.randomsplit with type arguments of type Binnable Modifier and Type Method Description <T> SplitPair<Binnable<T>>
RandomSplitGenerator. generate(List<Binnable<T>> data)
Generates the split. -
Uses of Binnable in adams.data.splitgenerator.generic.splitter
Methods in adams.data.splitgenerator.generic.splitter that return types with arguments of type Binnable Modifier and Type Method Description protected abstract <T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
AbstractSplitter. doSplit(List<Binnable<T>> data)
Splits the data into two.protected abstract <T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
AbstractSplitter. doSplit(List<Binnable<T>> data)
Splits the data into two.protected <T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
DefaultSplitter. doSplit(List<Binnable<T>> data)
Splits the data into two.protected <T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
DefaultSplitter. doSplit(List<Binnable<T>> data)
Splits the data into two.<T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
AbstractSplitter. split(List<Binnable<T>> data)
Splits the data into two.<T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
AbstractSplitter. split(List<Binnable<T>> data)
Splits the data into two.<T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
Splitter. split(List<Binnable<T>> data)
Splits the data into two.<T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
Splitter. split(List<Binnable<T>> data)
Splits the data into two.Method parameters in adams.data.splitgenerator.generic.splitter with type arguments of type Binnable Modifier and Type Method Description protected <T> String
AbstractSplitter. check(List<Binnable<T>> data)
Check method before performing randomization.protected abstract <T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
AbstractSplitter. doSplit(List<Binnable<T>> data)
Splits the data into two.protected <T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
DefaultSplitter. doSplit(List<Binnable<T>> data)
Splits the data into two.<T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
AbstractSplitter. split(List<Binnable<T>> data)
Splits the data into two.<T> com.github.fracpete.javautils.struct.Struct2<List<Binnable<T>>,List<Binnable<T>>>
Splitter. split(List<Binnable<T>> data)
Splits the data into two. -
Uses of Binnable in adams.data.splitgenerator.generic.stratification
Methods in adams.data.splitgenerator.generic.stratification that return types with arguments of type Binnable Modifier and Type Method Description protected abstract <T> List<Binnable<T>>
AbstractStratification. doStratify(List<Binnable<T>> data, int folds)
Stratifies the data.protected <T> List<Binnable<T>>
DefaultStratification. doStratify(List<Binnable<T>> data, int folds)
Stratifies the data.protected <T> List<Binnable<T>>
PassThrough. doStratify(List<Binnable<T>> data, int folds)
Does not stratify the data.<T> List<Binnable<T>>
AbstractStratification. stratify(List<Binnable<T>> data, int folds)
Stratifies the data.<T> List<Binnable<T>>
Stratification. stratify(List<Binnable<T>> data, int folds)
Stratifies the list of binnable data, using the value of the items.Method parameters in adams.data.splitgenerator.generic.stratification with type arguments of type Binnable Modifier and Type Method Description protected <T> String
AbstractStratification. check(List<Binnable<T>> data, int folds)
Check method before performing stratification.protected abstract <T> List<Binnable<T>>
AbstractStratification. doStratify(List<Binnable<T>> data, int folds)
Stratifies the data.protected <T> List<Binnable<T>>
DefaultStratification. doStratify(List<Binnable<T>> data, int folds)
Stratifies the data.protected <T> List<Binnable<T>>
PassThrough. doStratify(List<Binnable<T>> data, int folds)
Does not stratify the data.<T> List<Binnable<T>>
AbstractStratification. stratify(List<Binnable<T>> data, int folds)
Stratifies the data.<T> List<Binnable<T>>
Stratification. stratify(List<Binnable<T>> data, int folds)
Stratifies the list of binnable data, using the value of the items. -
Uses of Binnable in adams.ml.evaluation
Fields in adams.ml.evaluation with type parameters of type Binnable Modifier and Type Field Description protected List<FoldPair<Binnable<DataRow>>>
DefaultCrossValidationFoldGenerator. m_FoldPairs
the temporary pairs. -
Uses of Binnable in weka.classifiers
Fields in weka.classifiers with type parameters of type Binnable Modifier and Type Field Description protected List<Binnable<BinnableGroup<weka.core.Instance>>>
GroupedCrossValidationFoldGenerator. m_BinnableGroups
the collapsed data.protected List<Binnable<BinnableGroup<weka.core.Instance>>>
GroupedCrossValidationFoldGeneratorUsingNumericClassValues. m_BinnableGroups
the collapsed data.protected List<FoldPair<Binnable<weka.core.Instance>>>
BinnedNumericClassCrossValidationFoldGenerator. m_FoldPairs
the temporary pairs.protected List<FoldPair<Binnable<weka.core.Instance>>>
DefaultCrossValidationFoldGenerator. m_FoldPairs
the temporary pairs.protected List<FoldPair<Binnable<weka.core.Instance>>>
GroupedBinnedNumericClassCrossValidationFoldGenerator. m_FoldPairs
the temporary pairs.protected List<FoldPair<Binnable<BinnableGroup<weka.core.Instance>>>>
GroupedCrossValidationFoldGenerator. m_FoldPairs
the temporary pairs.protected List<FoldPair<Binnable<BinnableGroup<weka.core.Instance>>>>
GroupedCrossValidationFoldGeneratorUsingNumericClassValues. m_FoldPairs
the temporary pairs.Method parameters in weka.classifiers with type arguments of type Binnable Modifier and Type Method Description protected double[]
BestBinnedNumericClassRandomSplitGenerator. calcDistribution(List<Binnable<weka.core.Instance>> binnable, double emptyBinValue)
Calculates the class distribution.
-