use of com.sri.ai.util.computation.anytime.api.Approximation in project aic-praise by aic-sri-international.
the class GradientAnytimeExactBP method sumOutWithoutOneSub.
private Polytope sumOutWithoutOneSub(Anytime<Factor> sub) {
List<Approximation<Factor>> subsApproximations = getSubsApproximation();
Polytope product = getProductOfAllIncomingPolytopesButOneAndFactorAtRoot(sub, subsApproximations);
Collection<? extends Variable> freeVariables = product.getFreeVariables();
List<? extends Variable> variablesSummedOut = getBase().determinedVariablesToBeSummedOut(freeVariables);
Polytope result = sumOut(variablesSummedOut, product);
return result;
}
use of com.sri.ai.util.computation.anytime.api.Approximation in project aic-praise by aic-sri-international.
the class GradientAnytimeExactBP method productWithoutOneSub.
private Polytope productWithoutOneSub(Anytime<Factor> sub) {
List<Approximation<Factor>> subsApproximations = getSubsApproximation();
Polytope product = getProductOfAllIncomingPolytopesButOne(sub, subsApproximations);
return product;
}
Aggregations