locked
Poisson is not of type discrete for argument 2 of method iIsGreaterThanOp.IsGreaterThanAverageConditional? RRS feed

  • Question

  •     class InferNetTest
        {
            Variable<int> _x = Variable.Poisson(6);
            InferenceEngine _engine = new InferenceEngine();
            public void Infer()
            {
                Console.WriteLine(_engine.Infer(_x > 0));
            }
        }

    Why does it trigger the error "Poisson is not of type Discrete for ..."

    Does it mean I have to plug in the formula my self to get the probability?


    Monday, September 22, 2014 5:37 PM

Answers

  • It means that we don't yet support the greater than zero constraint on a Poisson distribution, but we do on a Discrete distribution.
    • Marked as answer by colinfang Monday, September 22, 2014 7:14 PM
    Monday, September 22, 2014 6:25 PM
    Owner

All replies

  • It means that we don't yet support the greater than zero constraint on a Poisson distribution, but we do on a Discrete distribution.
    • Marked as answer by colinfang Monday, September 22, 2014 7:14 PM
    Monday, September 22, 2014 6:25 PM
    Owner
  • This is now supported in Infer.NET 2.6.
    Saturday, November 29, 2014 6:07 PM
    Owner