@Test public void test() throws Exception { CreateCajamarDataContinuous.main(null); StaticModelFlink.main(null); }
public static void main(String[] args) throws IOException, ExceptionHugin { final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); String filename = "datasets/simulated/cajamarDistributed.arff"; DataFlink<DataInstance> data = DataFlinkLoader.open(env, filename, false); Model model = new FactorAnalysis(data.getAttributes()); model.updateModel(data); BayesianNetwork bn = model.getModel(); System.out.println(bn); BayesianNetworkWriter.save(bn, "networks/simulated/exampleBN.bn"); }
StaticModelFlink { public static void main(String[] args) throws IOException, ExceptionHugin { final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); String filename = "datasets/simulated/cajamarDistributed.arff"; DataFlink<DataInstance> data = DataFlinkLoader.open(env, filename, false); Model model = new FactorAnalysis(data.getAttributes()); model.updateModel(data); BayesianNetwork bn = model.getModel(); System.out.println(bn); BayesianNetworkWriter.save(bn, "networks/simulated/exampleBN.bn"); } }
StaticModelFlink { public static void main(String[] args) throws IOException, ExceptionHugin { final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); String filename = "datasets/simulated/cajamarDistributed.arff"; DataFlink<DataInstance> data = DataFlinkLoader.open(env, filename, false); Model model = new FactorAnalysis(data.getAttributes()); model.updateModel(data); BayesianNetwork bn = model.getModel(); System.out.println(bn); BayesianNetworkWriter.save(bn, "networks/simulated/exampleBN.bn"); }  }
StaticModelFlink { public static void main(String[] args) throws IOException, ExceptionHugin { final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); String filename = "datasets/simulated/cajamarDistributed.arff"; DataFlink<DataInstance> data = DataFlinkLoader.open(env, filename, false); Model model = new FactorAnalysis(data.getAttributes()); model.updateModel(data); BayesianNetwork bn = model.getModel(); System.out.println(bn); BayesianNetworkWriter.save(bn, "networks/simulated/exampleBN.bn"); }  static void main(String[] args); }
StaticModelFlink { public static void main(String[] args) throws IOException, ExceptionHugin { final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); String filename = "datasets/simulated/cajamarDistributed.arff"; DataFlink<DataInstance> data = DataFlinkLoader.open(env, filename, false); Model model = new FactorAnalysis(data.getAttributes()); model.updateModel(data); BayesianNetwork bn = model.getModel(); System.out.println(bn); BayesianNetworkWriter.save(bn, "networks/simulated/exampleBN.bn"); }  static void main(String[] args);  }