@Test public void test() throws Exception { LDAModelLearning.main(null); }
public static void main(String[] args) throws IOException { String filename = "datasets/simulated/docs.nips.small.arff"; DataStream<DataInstance> data = DataStreamLoader.open(filename); Model model = new LDA(data.getAttributes()); model.updateModel(data); BayesianNetwork bn = model.getModel(); BayesianNetworkWriter.save(bn, "networks/simulated/exampleBN.bn"); }
LDAModelLearning { public static void main(String[] args) throws IOException { String filename = "datasets/simulated/docs.nips.small.arff"; DataStream<DataInstance> data = DataStreamLoader.open(filename); Model model = new LDA(data.getAttributes()); model.updateModel(data); BayesianNetwork bn = model.getModel(); BayesianNetworkWriter.save(bn, "networks/simulated/exampleBN.bn"); } }
LDAModelLearning { public static void main(String[] args) throws IOException { String filename = "datasets/simulated/docs.nips.small.arff"; DataStream<DataInstance> data = DataStreamLoader.open(filename); Model model = new LDA(data.getAttributes()); model.updateModel(data); BayesianNetwork bn = model.getModel(); BayesianNetworkWriter.save(bn, "networks/simulated/exampleBN.bn"); }  }
LDAModelLearning { public static void main(String[] args) throws IOException { String filename = "datasets/simulated/docs.nips.small.arff"; DataStream<DataInstance> data = DataStreamLoader.open(filename); Model model = new LDA(data.getAttributes()); model.updateModel(data); BayesianNetwork bn = model.getModel(); BayesianNetworkWriter.save(bn, "networks/simulated/exampleBN.bn"); }  static void main(String[] args); }
LDAModelLearning { public static void main(String[] args) throws IOException { String filename = "datasets/simulated/docs.nips.small.arff"; DataStream<DataInstance> data = DataStreamLoader.open(filename); Model model = new LDA(data.getAttributes()); model.updateModel(data); BayesianNetwork bn = model.getModel(); BayesianNetworkWriter.save(bn, "networks/simulated/exampleBN.bn"); }  static void main(String[] args);  }