开发者

Export Weka Models for Use in C or C++

I have had a great deal of success using Weka for data exploration and deciding what classification algorithm is best for my problem. Now that I have a trained model that works, I would like to integrate it into the rest of my C++ program. Unfortunately, this seems like a difficult task: only Weka has native support for exporting classifiers as Java object files. Has anyone found a way to export Weka-trained model parameters in a useful format?

I would be particularly interested if there is a utility that generates C/C++ code from a J48 decision tre开发者_C百科e.


My understanding is that J48 is Java implementation of Quinlan C4.5 algorithm with C code freely available at http://www.rulequest.com/Personal/ Is this what you are looking for?


J48 implements the Sourcable interface, meaning it can output a built model as Java source code (you can probably achieve this from the classifier panel of the explorer gui). It might then be possible to automatically translate this into C/C++.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜