@Test public void test() throws Exception { BayesianNetworkSamplerExample.main(null); }
public static void main(String[] agrs) throws IOException, ClassNotFoundException { BayesianNetwork bn = BayesianNetworkLoader.loadFromFile("./networks/simulated/WasteIncinerator.bn"); BayesianNetworkSampler sampler = new BayesianNetworkSampler(bn); sampler.setSeed(0); DataStream<DataInstance> dataStream = sampler.sampleToDataStream(10); DataStreamWriter.writeDataToFile(dataStream, "datasets/simulated/sample-WasteIncinerator.arff"); }
BayesianNetworkSamplerExample { public static void main(String[] agrs) throws IOException, ClassNotFoundException { BayesianNetwork bn = BayesianNetworkLoader.loadFromFile("./networks/simulated/WasteIncinerator.bn"); BayesianNetworkSampler sampler = new BayesianNetworkSampler(bn); sampler.setSeed(0); DataStream<DataInstance> dataStream = sampler.sampleToDataStream(10); DataStreamWriter.writeDataToFile(dataStream, "datasets/simulated/sample-WasteIncinerator.arff"); } }
BayesianNetworkSamplerExample { public static void main(String[] agrs) throws IOException, ClassNotFoundException { BayesianNetwork bn = BayesianNetworkLoader.loadFromFile("./networks/simulated/WasteIncinerator.bn"); BayesianNetworkSampler sampler = new BayesianNetworkSampler(bn); sampler.setSeed(0); DataStream<DataInstance> dataStream = sampler.sampleToDataStream(10); DataStreamWriter.writeDataToFile(dataStream, "datasets/simulated/sample-WasteIncinerator.arff"); }  }
BayesianNetworkSamplerExample { public static void main(String[] agrs) throws IOException, ClassNotFoundException { BayesianNetwork bn = BayesianNetworkLoader.loadFromFile("./networks/simulated/WasteIncinerator.bn"); BayesianNetworkSampler sampler = new BayesianNetworkSampler(bn); sampler.setSeed(0); DataStream<DataInstance> dataStream = sampler.sampleToDataStream(10); DataStreamWriter.writeDataToFile(dataStream, "datasets/simulated/sample-WasteIncinerator.arff"); }  static void main(String[] agrs); }
BayesianNetworkSamplerExample { public static void main(String[] agrs) throws IOException, ClassNotFoundException { BayesianNetwork bn = BayesianNetworkLoader.loadFromFile("./networks/simulated/WasteIncinerator.bn"); BayesianNetworkSampler sampler = new BayesianNetworkSampler(bn); sampler.setSeed(0); DataStream<DataInstance> dataStream = sampler.sampleToDataStream(10); DataStreamWriter.writeDataToFile(dataStream, "datasets/simulated/sample-WasteIncinerator.arff"); }  static void main(String[] agrs);  }