net.sf.myra.datamining.data
Class FunctionBasedBuilder
java.lang.Object
net.sf.myra.datamining.data.IntervalBuilder
net.sf.myra.datamining.data.FunctionBasedBuilder
public class FunctionBasedBuilder
- extends IntervalBuilder
Experimental interval builder based on the Laplace function. Note:
only works if the class is pre-selected.
- Author:
- Fernando Esteban Barril Otero
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FunctionBasedBuilder
public FunctionBasedBuilder(Metadata metadata)
count
public int count(java.util.List<Instance> instances,
ContinuousAttribute attribute)
- Description copied from class:
IntervalBuilder
- Returns the number of candidate threshold values.
- Specified by:
count
in class IntervalBuilder
- Parameters:
instances
- the list of instances.attribute
- the continuous attribute.
- Returns:
- the number of candidate threshold values.
create
public IntervalBuilder.Interval[] create(java.util.List<Instance> instances,
ContinuousAttribute attribute)
- Description copied from class:
IntervalBuilder
- Returns the discrete intervals for the specified continuous attribute.
- Specified by:
create
in class IntervalBuilder
- Parameters:
instances
- the list of instances.attribute
- the continuous attribute.
- Returns:
- the discrete intervals for the specified continuous attribute.
createSingle
public IntervalBuilder.Interval createSingle(java.util.List<Instance> instances,
ContinuousAttribute attribute)
- Description copied from class:
IntervalBuilder
- Returns an interval for the specified continuous attribute tailored
for the specified instances.
- Specified by:
createSingle
in class IntervalBuilder
- Parameters:
instances
- the list of instances.attribute
- the continuous attribute.
- Returns:
- an interval for the specified continuous attribute tailored
for the specified instance.
createSingle
public IntervalBuilder.Interval createSingle(java.util.List<Instance> instances,
ContinuousAttribute attribute,
java.lang.String label)
- Description copied from class:
IntervalBuilder
- Returns a discrete interval for the specified continuous attribute
tailored for the specified instances and class value. The instances
are arranged into a binary distribution (i.e. instances that belong to
the specified class and instances that do not belong to the specified
class). Note that this operation may not be supporter by all interval
builders.
- Specified by:
createSingle
in class IntervalBuilder
- Parameters:
instances
- the list of instances.attribute
- the continuous attribute.label
- the class label.
- Returns:
- a discrete interval for the specified continuous attribute
tailored for the specified instances and class value.
create
protected IntervalBuilder.CutPoint create(double[][] matrix)
Copyright © 2013. All Rights Reserved.