Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultinomialRegression example throw exception, not supported with ExpectationPropagation due to MMath.Softmax #311

Open
pardont opened this issue Jan 7, 2021 · 3 comments

Comments

@pardont
Copy link

pardont commented Jan 7, 2021

image

@tminka
Copy link
Contributor

tminka commented Jan 7, 2021

I am not able to reproduce this. When I try, it says "This example only runs with Variational Message Passing". Try editing RunMe.cs so that it doesn't run the ExampleBrowser but calls new MultinomialRegression().Run(); directly. Then you can step through with a debugger and find out why the 'if' is not taken.

@pardont
Copy link
Author

pardont commented Jan 8, 2021

` I add one line to set the algorithm:

        // This example requires VMP
        InferenceEngine engine = new InferenceEngine();
        //-----------START: I add this line to pass the Algorithm checking ----
        engine.Algorithm = new VariationalMessagePassing();
        //-----------END: I add this line to pass the Algorithm checking ----

        if (!(engine.Algorithm is Algorithms.VariationalMessagePassing))
        {
            Console.WriteLine("This example only runs with Variational Message Passing");
            return;
        }`

@tminka
Copy link
Contributor

tminka commented Jan 8, 2021

If you change the algorithm in the browser, it will work correctly. It sounds like your issue is: "The code that I expected would change the algorithm does not work."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants