Re: using weka's generated rules in java
2011-02-01 07:21:43 GMT
On 01/29/2011 06:27 AM, Radek Chudziak wrote: > How to use rules generated by weka's classifier NNGE in my java code? > > For example the rules generated by the classifier are as follows: > > Rules generated : > class closed IF : 19.0<=Time<=24.0 (109) > class open IF : Time=18.0 (9) > class closed IF : 15.0<=Time<=17.0 (60) > class closed IF : 13.0<=Time<=14.0 (31) > class open IF : Time=12.0 (11) > class closed IF : 10.0<=Time<=11.0 (40) > class open IF : Time=9.0 (9) > class closed IF : 1.0<=Time<=8.0 (149) > > I want to use these rules in my java code where I want to check whether > a given input matches the above rules. > Can somebody please help me with that. I know you can serialise the > model in weka but how to use these particular rules. Why not just load the serialized model and call classifyInstance() or distributionForInstance() in order to make predictions? Otherwise you'll have to parse the output and test the value of "Time" against each rule to see if it matches. Cheers, Mark _______________________________________________ Wekalist mailing list(Continue reading)
Best,
Christophe
2011/2/1 Laura Cannas <lauramcannas <at> gmail.com>:
> Hi Weka users!
>
> Starting from
RSS Feed