org.jdmp.mallet.sample
Class Instance2Sample

java.lang.Object
  extended by org.jdmp.core.AbstractCoreObject
      extended by org.jdmp.core.sample.AbstractSample
          extended by org.jdmp.core.sample.DefaultSample
              extended by org.jdmp.core.sample.ClassificationSample
                  extended by org.jdmp.mallet.sample.Instance2Sample
All Implemented Interfaces:
Serializable, Cloneable, org.jdmp.core.CoreObject, org.jdmp.core.sample.Sample, org.jdmp.core.variable.HasVariableMap, org.jdmp.core.variable.HasVariables, Clearable, HasDescription, HasGUIObject, HasId, HasLabel, Wrapper<cc.mallet.types.Instance>

public class Instance2Sample
extends org.jdmp.core.sample.ClassificationSample
implements Wrapper<cc.mallet.types.Instance>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdmp.core.AbstractCoreObject
ALL, COLUMN, logger, ROW, X, Y, Z
 
Fields inherited from interface org.jdmp.core.sample.Sample
COUNT, DESCRIPTION, DIFFERENCE, ID, INPUT, LABEL, PREDICTED, PROBABILITY, RMSE, SCORE, TARGET, WEIGHT
 
Constructor Summary
Instance2Sample(cc.mallet.types.Instance instance, int index)
           
 
Method Summary
 String getLabel()
           
 cc.mallet.types.Instance getWrappedObject()
           
 void setWrappedObject(cc.mallet.types.Instance object)
           
 
Methods inherited from class org.jdmp.core.sample.ClassificationSample
getRecognizedClass, getTargetClass, isCorrect
 
Methods inherited from class org.jdmp.core.sample.DefaultSample
clone, getVariables, setMatrix, setVariables
 
Methods inherited from class org.jdmp.core.sample.AbstractSample
clear, getAsString, getDescription, getGUIObject, getId, getMatrix, notifyGUIObject, setDescription, setId, setLabel, setObject, toString
 
Methods inherited from class org.jdmp.core.AbstractCoreObject
showGUI
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ujmp.core.interfaces.HasGUIObject
showGUI
 

Constructor Detail

Instance2Sample

public Instance2Sample(cc.mallet.types.Instance instance,
                       int index)
Method Detail

getWrappedObject

public cc.mallet.types.Instance getWrappedObject()
Specified by:
getWrappedObject in interface Wrapper<cc.mallet.types.Instance>

getLabel

public String getLabel()
Specified by:
getLabel in interface HasLabel
Overrides:
getLabel in class org.jdmp.core.sample.AbstractSample

setWrappedObject

public void setWrappedObject(cc.mallet.types.Instance object)
Specified by:
setWrappedObject in interface Wrapper<cc.mallet.types.Instance>


Copyright © 2009. All Rights Reserved.