コード例 #1
0
ファイル: RunMe.cs プロジェクト: xornand/Infer.Net
		public static void Main()
		{
			Type tutorialClass = null;
			//********** UNCOMMENT AND EDIT THIS LINE TO RUN A PARTICULAR TUTORIAL DIRECTLY *************
			//tutorialClass = typeof(MicrosoftResearch.Infer.Tutorials.FirstExample);

			if (tutorialClass != null)
			{
				// Run the specified tutorial
				RunTutorial(tutorialClass);
			}
			else
			{
				// Show all tutorials, in a browser
				IAlgorithm[] algs = InferenceEngine.GetBuiltInAlgorithms();
				// Avoid max product in the examples browser, as none of the examples apply.
				List<IAlgorithm> algList = new List<IAlgorithm>(algs);
				algList.RemoveAll(alg => alg is MaxProductBeliefPropagation);
				ExamplesViewer tview = new ExamplesViewer(typeof(RunMe), algList.ToArray());
				tview.Run();
			}
		}
コード例 #2
0
ファイル: RunMe.cs プロジェクト: mesgarpour/ERMER
        public static void Main()
        {
            Type tutorialClass = null;

            //********** UNCOMMENT AND EDIT THIS LINE TO RUN A PARTICULAR TUTORIAL DIRECTLY *************
            //tutorialClass = typeof(MicrosoftResearch.Infer.Tutorials.FirstExample);

            if (tutorialClass != null)
            {
                // Run the specified tutorial
                RunTutorial(tutorialClass);
            }
            else
            {
                // Show all tutorials, in a browser
                IAlgorithm[] algs = InferenceEngine.GetBuiltInAlgorithms();
                // Avoid max product in the examples browser, as none of the examples apply.
                List <IAlgorithm> algList = new List <IAlgorithm>(algs);
                algList.RemoveAll(alg => alg is MaxProductBeliefPropagation);
                ExamplesViewer tview = new ExamplesViewer(typeof(RunMe), algList.ToArray());
                tview.Run();
            }
        }