|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.AbstractIOObject
edu.udo.cs.yale.operator.ResultObjectAdapter
edu.udo.cs.yale.operator.AbstractModel
public abstract class AbstractModel
Abstract model is the superclass for all objects which change a data set. For example, a model generated by a learner might add a predicted attribute. Other models can be created during preprocessing, e.g. a transformation model containing the parameters for a z-transformation. Models can be combined by using a CombinedModel. All models can be applied with a ModelApplier operator.
| Constructor Summary | |
|---|---|
AbstractModel()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true iff the given object has the same class. |
java.lang.String |
getExtension()
Returns the default extension in file choosers. |
java.lang.String |
getFileDescription()
Returns the file description used in file choosers. |
static Model |
readModel(java.io.File file)
Reads the model from a file. |
static Model |
readModel(java.io.ObjectInputStream in)
Reads the model from an ObjectInput. |
void |
save(java.io.File file)
Writes the object into the given file. |
void |
setParameter(java.lang.String key,
java.lang.Object value)
Throws a UserError since most models should not allow additional parameters during application. |
abstract void |
writeData(java.io.ObjectOutputStream out)
Writes the model to a stream. |
void |
writeModel(java.io.File file)
Writes the model to a file by writing its class and calling writeModel(ObjectOutput). |
void |
writeModel(java.io.ObjectOutputStream out)
Writes the model to a file by writing its class and calling writeModel(ObjectOutput). |
| Methods inherited from class edu.udo.cs.yale.operator.ResultObjectAdapter |
|---|
addAction, getActions, getName, getVisualisationComponent, toHTML, toResultString |
| Methods inherited from class edu.udo.cs.yale.operator.AbstractIOObject |
|---|
copy, read, read, read, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.udo.cs.yale.operator.Model |
|---|
apply |
| Methods inherited from interface edu.udo.cs.yale.operator.ResultObject |
|---|
getActions, getName, getVisualisationComponent, toResultString |
| Methods inherited from interface edu.udo.cs.yale.operator.IOObject |
|---|
copy, write, write |
| Constructor Detail |
|---|
public AbstractModel()
| Method Detail |
|---|
public abstract void writeData(java.io.ObjectOutputStream out)
throws java.io.IOException
java.io.IOException
public void setParameter(java.lang.String key,
java.lang.Object value)
throws OperatorException
setParameter in interface ModelOperatorException
public void save(java.io.File file)
throws java.io.IOException
Saveable
save in interface Saveablejava.io.IOExceptionpublic java.lang.String getExtension()
Saveable
getExtension in interface Saveablepublic java.lang.String getFileDescription()
Saveable
getFileDescription in interface Saveable
public final void writeModel(java.io.File file)
throws java.io.IOException
writeModel in interface Modeljava.io.IOException
public final void writeModel(java.io.ObjectOutputStream out)
throws java.io.IOException
writeModel in interface Modeljava.io.IOException
public static final Model readModel(java.io.File file)
throws OperatorException,
java.io.IOException
OperatorException
java.io.IOException
public static final Model readModel(java.io.ObjectInputStream in)
throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||