weka

How to use CPython Scripting in Weka?

Remarks#

How to install CPython in Weka?

Install wekaPython

  1. go to tools, open package manager
  2. search wekaPython, select and click to install

Install Python libraries

  1. install anaconda or conda
  2. install four packages: numpy, pandas, matplotlib, scikit-learn
  3. for full installation doc see conda

Hello World Example for CPython of Weka

Go to Explorer, Open iris.arff data, then go to CPython Scripting, Copy and Paste the following lines of codes into Python Scripts:

hi = "Hello, CPython of Weka!"
hello = hi.upper()
iris = py_data
info = iris.describe()

To see output, go to Python Variables, select hi, for example, and click Get text


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow