我有一个非常简单的规则,我已经收到了质量等级问题。有人可以解释为什么会这样吗?我已经阅读了有关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)
答案 0 :(得分:0)
在Infer.Net的Github存储库中回答了这个问题。
自2019年1月起,该功能仍在开发中,因此始终会发出警告。
之所以会这样,是因为实现高斯变量乘积(GaussianProductOp)的代码处于开发的早期阶段。如果要禁用模型编译器错误和/或警告,请在engine.Compiler上设置选项。