![]() | NORSYS SOFTWARE © 2005 | NETICA API | JAVA   VERSION   3.06  |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--norsys.netica.Caseset
A collection of cases. Currently this class is used only by the Learner class.
Constructor Summary | |
Caseset()
Creates and returns a new Caseset, initially containing no cases, in the default environment. |
|
Caseset(Environ env)
Creates and returns a new Caseset, initially containing no cases. |
Method Summary | |
void |
addCases(Streamer inStream,
double degree)
Indicates that all the cases within inStream should be added to this Caseset. |
void |
finalize()
Removes the Caseset and frees all its resources (e.g., memory). |
Environ |
getEnviron()
Returns the Environ that this object belongs to. |
void |
writeCases(Streamer outStream)
Writes all the cases within this Caseset to inStream. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Caseset ( ) throws NeticaException |
Currently, Casesets are used in batch learning (see learnCPTs), but in future they will be used for much more.
Version:
Caseset(Environ) | Same, but for any environment | |
finalize | Release the resources (e.g., memory) used by the Caseset | |
addCases | Adds cases to it | |
learnCPTs | Use the Caseset for batch learning | |
getCases | Creates a Caseset from cases retrieved from a database |
public Caseset ( |
| ) throws NeticaException |
Currently, Casesets are used in batch learning (see learnCPTs), but in future they will be used for much more.
Parameters:
Environ | env | The Environ in which this new caseset will be placed. |
Caseset() | Same, but for the default environment | |
finalize | Release the resources (e.g., memory) used by the Caseset | |
addCases | Adds cases to it | |
learnCPTs | Use the Caseset for batch learning | |
getCases | Creates a Caseset from cases retrieved from a database |
Method Detail |
public void addCases ( |
| ) throws NeticaException |
degree indicates how each case in the stream should be weighted. See reviseCPTsByFindings for more information about the relative weighting of cases.
Currently you can only add one file to a caseset.
Parameters:
Streamer | inStream | The stream to search for cases | ||
double | degree | A frequency factor to apply to each case in the stream |
writeCases | Inverse method. | |
Caseset | Create a new Caseset. | |
finalize | Free the resources (e.g., memory) used by the Caseset. | |
learnCPTs | Use the Caseset for learning. |
public void finalize ( ) throws NeticaException |
Caseset | Create a new Caseset. |
finalize
in class java.lang.Object
public Environ getEnviron ( ) |
public void writeCases ( |
| ) throws NeticaException |
They are written in the standard Netica case file format.
Parameters:
Streamer | outStream | The stream to receive the cases |
addCases | Inverse method. | |
Caseset | Create a new Caseset. | |
finalize | Free the resources (e.g., memory) used by the Caseset. | |
learnCPTs | Use the Caseset for learning. |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |