Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I use Weka from Python?

Python Weka
0
Posted

Can I use Weka from Python?

0

Yes and no. If you’re starting from scratch, you might want to consider Jython, a rewrite of Python to seamlessly integrate with Java. The drawback is, that you can only use the libraries that Jython implements, not others like NumPy or SciPy. The article Using Weka from Jython explains how to use Weka classes from Jython and how to implement a new classifier in Jython, with an example of ZeroR implemented in Jython. An approach making use of the javax.script package (new in Java 6) is Jepp, Java embedded Python. Jepp seems to have the same limitations as Jython, not being able to import Scipy or Numpy, but one can import pure Python libraries. The arcticle Using Weka via Jepp contains more information and examples. Another solution, to access Java from within Python applications is JPype, but It’s still not fully matured.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123