Introduction¶
python-weka-wrapper3 allows you to use Weka from within Python3.
The library uses the javabridge library for starting up, communicating with and shutting down the Java Virtual Machine in which the Weka processes get executed.
python-weka-wrapper3 provides a thin wrapper around the basic (non-GUI) functionality of Weka (some plots are available using Python functionality). You can automatically add all your Weka packages to the classpath. Additional jars can be added as well.
Links:
Looking for code?
Questions? You can post them in the project’s Google Group
Requirements¶
The library has the following requirements:
Python 3 (does not work with Python 2)
python-javabridge (>=4.0.0, required)
pygraphviz (optional)
PIL (optional)
matplotlib (optional)
lxml (optional)
OpenJDK 11 (or later)
Uses:
Weka (3.9.6)
Contents¶
- Installation
- Docker
- Troubleshooting
- Examples
- Start up JVM
- Location of the datasets
- Load dataset and print it
- Create dataset manually
- Create dataset from lists
- Create dataset from matrices
- Dataset subsets
- Data generators
- Filters
- Output help from underlying OptionHandler
- Option handling
- Build classifier on dataset, output predictions
- Build classifier on dataset, print model and draw graph
- Build classifier incrementally with data and print model
- Cross-validate filtered classifier and print evaluation and display ROC
- Cross-validate regressor, display classifier errors and predictions
- Parameter optimization - property names
- Parameter optimization - GridSearch
- Parameter optimization - MultiSearch
- Clustering
- Associations
- Attribute selection
- Timeseries
- Serialization
- Experiments
- Partial classnames
- Packages
- Stop JVM
- Database access
- Command-line
- Flow
API¶
- weka package
- Subpackages
- weka.core package
- weka.core.capabilities module
- weka.core.classes module
- weka.core.converters module
- weka.core.database module
- weka.core.dataset module
- weka.core.distances module
- weka.core.jvm module
- weka.core.packages module
- weka.core.serialization module
- weka.core.stemmers module
- weka.core.stopwords module
- weka.core.tokenizers module
- weka.core.typeconv module
- weka.core.version module
- Module contents
- weka.flow package
- weka.plot package
- weka.core package
- weka.associations module
- weka.attribute_selection module
- weka.classifiers module
- weka.clusterers module
- weka.datagenerators module
- weka.experiments module
- weka.filters module
- weka.timeseries module
- Subpackages