|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<weka.core.Instance>
weka.core.Instances
com.rapidminer.tools.WekaInstancesAdaptor
public class WekaInstancesAdaptor
This class extends the Weka class Instances and overrides all methods needed
to directly use a RapidMiner ExampleSet as source for Weka instead of
copying the complete data.
| Field Summary | |
|---|---|
static int |
ASSOCIATION_RULE_MINING
|
static int |
CLUSTERING
|
static int |
LEARNING
|
static int |
PREDICTING
|
static int |
WEIGHTING
|
| Fields inherited from class weka.core.Instances |
|---|
ARFF_DATA, ARFF_RELATION, FILE_EXTENSION, m_Attributes, m_ClassIndex, m_Instances, m_Lines, m_RelationName, SERIALIZED_OBJ_FILE_EXTENSION |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
WekaInstancesAdaptor(java.lang.String name,
ExampleSet exampleSet,
int taskType)
Creates a new Instances object based on the given example set. |
|
| Method Summary | |
|---|---|
java.util.Enumeration |
enumerateInstances()
Returns an instance enumeration based on an ExampleReader. |
weka.core.Instance |
instance(int i)
Returns the i-th instance. |
int |
numInstances()
Returns the number of instances. |
protected java.lang.Object |
readResolve()
|
| Methods inherited from class weka.core.Instances |
|---|
add, add, attribute, attribute, attributeStats, attributeToDoubleArray, checkForAttributeType, checkForStringAttributes, checkInstance, classAttribute, classIndex, compactify, copyInstances, delete, delete, deleteAttributeAt, deleteAttributeType, deleteStringAttributes, deleteWithMissing, deleteWithMissing, deleteWithMissingClass, enumerateAttributes, equalHeaders, equalHeadersMsg, firstInstance, freshAttributeInfo, get, getRandomNumberGenerator, getRevision, initialize, insertAttributeAt, instancesAndWeights, kthSmallestValue, kthSmallestValue, lastInstance, main, meanOrMode, meanOrMode, mergeInstances, numAttributes, numClasses, numDistinctValues, numDistinctValues, partition, quickSort, randomize, readInstance, relationName, remove, renameAttribute, renameAttribute, renameAttributeValue, renameAttributeValue, resample, resampleWithWeights, resampleWithWeights, select, set, setClass, setClassIndex, setRelationName, size, sort, sort, stratify, stratStep, stringFreeStructure, stringWithoutHeader, sumOfWeights, swap, test, testCV, toString, toSummaryString, trainCV, trainCV, variance, variance |
| Methods inherited from class java.util.AbstractList |
|---|
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Field Detail |
|---|
public static final int LEARNING
public static final int PREDICTING
public static final int CLUSTERING
public static final int ASSOCIATION_RULE_MINING
public static final int WEIGHTING
| Constructor Detail |
|---|
public WekaInstancesAdaptor(java.lang.String name,
ExampleSet exampleSet,
int taskType)
throws OperatorException
OperatorException| Method Detail |
|---|
protected java.lang.Object readResolve()
public java.util.Enumeration enumerateInstances()
enumerateInstances in class weka.core.Instancespublic weka.core.Instance instance(int i)
instance in class weka.core.Instancespublic int numInstances()
numInstances in class weka.core.Instances
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||