locked
constrain positive (Migrated from community.research.microsoft.com) RRS feed

  • Question

  • TimSal posted on 02-25-2011 8:30 AM

    The documentation says that the Constrain.Positive factor is fully supported for VMP, yet the following code produces an error:

     

    Variable<double> test = Variable.GaussianFromMeanAndVariance(0, 1);

    Variable.ConstrainPositive(test);

    InferenceEngine engine = new InferenceEngine(new VariationalMessagePassing());

    engine.Infer(test);

     

    Am I missing something?

    Friday, June 3, 2011 6:22 PM

Answers

  • minka replied on 02-28-2011 9:14 AM

    This is an error in the documentation.  Constrain.Positive is not yet supported for VMP.

    Friday, June 3, 2011 6:22 PM