예제 #1
0
        static void ModelNetworkSprinklerFile()
        {
            GraphicalModel model = new GraphicalModel("WetRainSprinkler.xml");

            model.CreateNetwork();
            Dictionary <string, int[]> observedData = GraphicalModel.LoadData("WetRainSprinklerData.xml");

            model.LearnParameters(observedData);
        }
예제 #2
0
        static void CreateGraphicalModel()
        {
            GraphicalModel model = new GraphicalModel("dungeonNetwork.xml");

            model.CreateNetwork();
            Dictionary <string, int[]> observedData = GraphicalModel.LoadData("dungeonNetworkData.xml");

            model.LearnParameters(observedData);
        }