Load an xml bif file
You should use the BIFReader class (weka.classifiers.bayes.net.BIFReader
).
Here is the snippet :
import weka.classifiers.bayes.BayesNet;
import weka.classifiers.bayes.net.BIFReader;
public class wekaTest {
public static void main(String[] args) throws Exception {
BayesNet network = new BayesNet();
BIFReader reader = new BIFReader();
network = reader.processFile("rb_on_min_attr.xml");
}
}
https:/weka.sourceforge.io/doc.dev/weka/classifiers/evaluation/ThresholdCurve.html
Downloads#
LoadBif.java
(stable-3.8, developer)