I run a training set using Naive Bayes classifier using Weka. The resulted model is shown below. My question is:
a. Is it possible to incorporate the model into my java code?
b. If so, how can I do that?
c. If not, what should I do?
Thanks.
=== Classifier model (full training set) ===
Naive Bayes (simple)
Class A: P(C) = 0.42074928
Attribute mcv
'All'
1
Attribute alkphos
'All'
1
Attribute sgpt
'All'
1
Attribute sgot
'All'
1
Attribute gammagt
'(-inf-20.5]' '(20.5-inf)'
0.54421769 0.45578231
Attribute drinks
'All'
1
Class B: P(C) = 0.57925072
Attribute mcv
'All'
1
Attribute alkphos
'All'
1
Attribute sgpt
'All'
1
Attribute sgot
'All'
1
Attribute gammagt
'(-inf-20.5]' '(20.5-inf)'
0.30693069 0.69306931
Attribute drinks
'All'
1
Time taken to build model: 0 seconds