GaussianProductOp.ProductAverageConditional-的质量范围为“实验”,小于建议的质量范围(预览)

时间:2019-01-23 10:00:22

标签: infer.net

我有一个非常简单的规则,我已经收到了质量等级问题。有人可以解释为什么会这样吗?我已经阅读了有关Quality bands的文档,但我不理解。

这是我编写的产生警告的代码:

Gaussian BornYoungPerLitterDist = new Gaussian(5.5, 0);
Gaussian BirthRateDist = new Gaussian(0.004102103451, 0.00000144);

Variable<double> BornYoungPerLitter = Variable.Random<double, Gaussian>(BornYoungPerLitterDist);
Variable<double> Birthrate = Variable.Random<double, Gaussian>(BirthRateDist);

InferenceEngine engine = new InferenceEngine();
Gaussian Born = engine.Infer<Gaussian>(BornYoungPerLitter * Birthrate);
Console.WriteLine(
    "Born Mean: {0:f10}, Standard Deviation: {1:f10}",
    Born.GetMean(),
    Math.Sqrt(Born.GetVariance())
);

警告是:

Compiling model...compilation had 1 warning(s).
  [1] GaussianProductOp.ProductAverageConditional(vdouble2_use_B, vGaussian0, vGaussian1) has quality band Experimental which is less than the recommended quality band (Preview)

1 个答案:

答案 0 :(得分:0)

在Infer.Net的Github存储库中回答了这个问题。

自2019年1月起,该功能仍在开发中,因此始终会发出警告。

  

之所以会这样,是因为实现高斯变量乘积(GaussianProductOp)的代码处于开发的早期阶段。如果要禁用模型编译器错误和/或警告,请在engine.Compiler上设置选项。

https://github.com/dotnet/infer/issues/104