How to use CPython Scripting in Weka?
Remarks#
How to install CPython in Weka?
Install wekaPython
- go to
tools
, openpackage manager
- search
wekaPython
, select and click to install
Install Python libraries
- install anaconda or conda
- install four packages: numpy, pandas, matplotlib, scikit-learn
- for full installation doc see conda
Hello World Example for CPython of Weka
Go to
Explorer
, Openiris.arff
data, then go toCPython Scripting
, Copy and Paste the following lines of codes intoPython Scripts
:
hi = "Hello, CPython of Weka!"
hello = hi.upper()
iris = py_data
info = iris.describe()
To see output, go to
Python Variables
, selecthi
, for example, and clickGet text