Code examples
From Jstacs
Jump to navigationJump to search
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
- Create a discrete alphabet
- 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: