Peter Reutemann shows how to bring Weka to the Python universe, and use the python-weka-wrapper library to replicate scripts from the earlier lessons.
Share this step
So far, we’ve been using Python from within Weka. However, in this lesson we work the other way round and invoke Weka from within Python. This allows you to take advantage of the numerous program libraries that Python has to offer. You need to install Python, and then the python-weka-wrapper library for Python. Having set this up, we replicate some scripts from earlier lessons.
Note: Peter is using Python 2.7, which is now obsolete, but everything works the same with Python 3.