3 ms·
Honestly, this looks like automatically generated code.
by Rinzai 15y ago
Honestly, this looks like automatically generated code.
- pjscott 15y agoSpecifically, it looks like someone created a decision tree using Weka's J48graft class, then translated it automatically to Python code.
- DallaRosa 15y agoWhat I can't get is the need to translate the Java code to Python. Ideas, anyone?
- prodigal_erik 15y agoPython does has a nice clean grammar if you have to generate code, but yeah, if they already had a Weka model it's not clear why they aren't just evaluating that in a JVM. The only exotic thing they're doing is calling a Python module that can read Win32 portable executable files, though there appear to be similar Java libraries. Maybe they want end users to install and run something, so they avoided requiring the huge download footprint of a modern JRE?
- emilv 15y agoMaybe they even shipped this to users automatically through an already existing (Python-supporting) system?