locked
Help with ArgumentException: Method 'FooMarginal' not found on type: Model_EP (Migrated from community.research.microsoft.com) RRS feed

  • Question

  • kuangc posted on 01-02-2009 6:40 PM

    We have built a model which compiles successfully but fails on any inference task.

    It's sufficiently complex that it's hard to explain what the model is doing short of sending the source code, and we have been unable to reproduce the issue in a simpler example -- do you have any general hints on what may cause this type of exception, or could we send some of the source for you to review? Thanks!

    The exception, triggered a call to Infer() (note "Foo" is the name of one of our hidden nodes; it certainly is not deterministic - the error applies to all nodes that we try to call Infer() on).

    System.ArgumentException was unhandled
      Message="Method 'FooMarginal' not found on type: Model_EP. You may be trying to infer the value of a deterministic variable."
      Source="Infer.Compiler"
      StackTrace:
           at MicrosoftResearch.Infer.CompiledAlgorithm.GetMethod(String varName, String suffix) in C:\infernetBuilds\05-12-2008_17-31\Compiler\Infer\Algorithms\CompiledAlgorithm.cs:line 83
           at MicrosoftResearch.Infer.CompiledAlgorithm.Marginal(String variableName) in C:\infernetBuilds\05-12-2008_17-31\Compiler\Infer\Algorithms\CompiledAlgorithm.cs:line 104
           at MicrosoftResearch.Infer.CompiledAlgorithm.Marginal(IVariable variable) in C:\infernetBuilds\05-12-2008_17-31\Compiler\Infer\Algorithms\CompiledAlgorithm.cs:line 114
           at MicrosoftResearch.Infer.InferenceEngine.InferAll(Boolean inferOnlySpecifiedVars, IVariable[ vars) in C:\infernetBuilds\05-12-2008_17-31\Compiler\Infer\InferenceEngine.cs:line 183
           at MicrosoftResearch.Infer.InferenceEngine.Infer(IVariable var) in C:\infernetBuilds\05-12-2008_17-31\Compiler\Infer\InferenceEngine.cs:line 120
           at MicrosoftResearch.Infer.InferenceEngine.Infer[Distribution](IVariable var) in C:\infernetBuilds\05-12-2008_17-31\Compiler\Infer\InferenceEngine.cs:line 147
           at Usher.Usher.Main(String[ args) in c:\work\de\webapp\Usher\Usher\Usher.cs:line 119
           at System.AppDomain._nExecuteAssembly(Assembly assembly, String[ args)
           at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[ args)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
      InnerException:
     

    Friday, June 3, 2011 4:41 PM

Answers

  • jwinn replied on 01-03-2009 5:33 AM

    It is difficult to assess what the problem may be here without more information.  Please do send through source code that reproduces the problem - you can either post it here or send it to infersup@microsoft.com.

    Thanks,
    John W.

    Friday, June 3, 2011 4:41 PM