|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.weka.predictions.AbstractErrorScaler
public abstract class AbstractErrorScaler
Ancestor for classes that scale predictions.
| Field Summary |
|---|
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractErrorScaler()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this object with the specified object for order. |
boolean |
equals(Object o)
Returns whether the two objects are the same. |
static AbstractErrorScaler |
forCommandLine(String cmdline)
Instantiates the scaler from the given commandline (i.e., classname and optional options). |
static AbstractErrorScaler |
forName(String classname,
String[] options)
Instantiates the scaler with the given options. |
abstract weka.core.Capabilities |
getCapabilities()
Returns the capabilities of this object. |
static String[] |
getErrorScalers()
Returns a list with classnames of scalers. |
abstract ArrayList<Integer> |
scale(ArrayList data)
Scales the errors. |
AbstractErrorScaler |
shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options. |
AbstractErrorScaler |
shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options. |
String |
toString()
Returns the commandline of this object. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractErrorScaler()
| Method Detail |
|---|
public abstract weka.core.Capabilities getCapabilities()
getCapabilities in interface weka.core.CapabilitiesHandlerCapabilitiespublic abstract ArrayList<Integer> scale(ArrayList data)
data - the data containing the errors to scale
public String toString()
toString in class AbstractOptionHandlerpublic int compareTo(Object o)
o - the object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this object.public boolean equals(Object o)
equals in class Objecto - the object to be compared
public AbstractErrorScaler shallowCopy()
public AbstractErrorScaler shallowCopy(boolean expand)
expand - whether to expand variables to their current values
public static String[] getErrorScalers()
public static AbstractErrorScaler forName(String classname,
String[] options)
classname - the classname of the scaler to instantiateoptions - the options for the scaler
public static AbstractErrorScaler forCommandLine(String cmdline)
cmdline - the classname (and optional options) of the
scaler to instantiate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||