Code examples: Difference between revisions
From Jstacs
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
---- | ---- | ||
You can find a Java class containing most of the code examples used in a common main-method at [http://www.jstacs.de/downloads/CodeExampleTest.java CodeExampleTest.java]. Please see [[Getting started]] for how to compile and run the example.<br /> | You can find a Java class containing most of the code examples used in a common main-method at [http://www.jstacs.de/downloads/CodeExampleTest.java CodeExampleTest.java]. Please see [[Getting started]] and the comments in the preamble of the class for how to compile and run the example.<br /> | ||
Another runnable example can be found at [http://www.jstacs.de/downloads/MiMBExample.java MiMBExample.java]. Additional information about this example is given on the [[MiMB]] page. | Another runnable example can be found at [http://www.jstacs.de/downloads/MiMBExample.java MiMBExample.java]. Additional information about this example is given on the [[MiMB]] page. | ||
Revision as of 16:18, 4 December 2009
At this page we collected some code examples that show how to use or extend the Jstacs framework. You are invited to extend the list and submit code examples to the Jstacs forum.
You can find a Java class containing most of the code examples used in a common main-method at CodeExampleTest.java. Please see Getting started and the comments in the preamble of the class for how to compile and run the example.
Another runnable example can be found at MiMBExample.java. Additional information about this example is given on the MiMB page.
Using Jstacs:
- Loading data
- Training a classifier and classifying new sequences
- Saving and loading a model
- Performing a 10-fold cross validation
- Using the REnvironment
- Compute and plot Receiver Operating Characteristic (ROC) and Precision-Recall (PR) curve
- Parameter learning
Extending Jstacs: