weka.core
Class SoftClassifiedInstances

java.lang.Object
  extended byweka.core.Instances
      extended byweka.core.SoftClassifiedInstances
All Implemented Interfaces:
java.io.Serializable

public class SoftClassifiedInstances
extends Instances

An set of Instances that has a probability distribution across class values. Particularly useful for EM using a SoftClassifier

See Also:
Serialized Form

Field Summary
 
Fields inherited from class weka.core.Instances
FILE_EXTENSION, m_Attributes, m_ClassIndex, m_IndicesBuffer, m_Instances, m_Ranges, m_RelationName, m_ValueBuffer, R_MAX, R_MIN, R_WIDTH
 
Constructor Summary
SoftClassifiedInstances(Instances dataset)
          Create a set of SoftClassifiedInstances from a given set of Instances with hard class probabilities using existing class values.
SoftClassifiedInstances(Instances dataset, java.util.Random randomizer)
          Create a set of SoftClassifiedInstances from a given set of Instances but with random class probabilities.
 
Method Summary
 void addInstances(SoftClassifiedInstances instances)
          Add another set of instances to this set
 
Methods inherited from class weka.core.Instances
add, add, attribute, attribute, attributeStats, attributeToDoubleArray, checkForNominalAttributes, checkForStringAttributes, checkInstance, classAttribute, classIndex, compactify, delete, delete, deleteAttributeAt, deleteClassAttribute, deleteStringAttributes, deleteWithMissing, deleteWithMissing, deleteWithMissingClass, enumerateAttributes, enumerateInstances, equalHeaders, firstInstance, getInstance, getInstanceFull, getInstanceSparse, getRanges, initializeRanges, initializeRanges, initializeRangesEmpty, inRanges, insertAttributeAt, instance, lastInstance, main, meanOrMode, meanOrMode, mergeInstances, numAttributes, numClasses, numDistinctValues, numDistinctValues, numInstances, printRanges, printRanges, randomize, rangesSet, readHeader, readInstance, relationName, renameAttribute, renameAttribute, renameAttributeValue, renameAttributeValue, resample, resampleWithWeights, resampleWithWeights, setClass, setClassIndex, setRelationName, sort, sort, stratify, stringFreeStructure, sumOfWeights, test, testCV, toString, toSummaryString, trainCV, updateRanges, updateRangesFirst, variance, variance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoftClassifiedInstances

public SoftClassifiedInstances(Instances dataset,
                               java.util.Random randomizer)
Create a set of SoftClassifiedInstances from a given set of Instances but with random class probabilities.


SoftClassifiedInstances

public SoftClassifiedInstances(Instances dataset)
Create a set of SoftClassifiedInstances from a given set of Instances with hard class probabilities using existing class values.

Method Detail

addInstances

public void addInstances(SoftClassifiedInstances instances)
Add another set of instances to this set