Search in sources :

Example 6 with ExpressionFactorNetwork

use of com.sri.ai.praise.core.representation.interfacebased.factor.core.expression.core.ExpressionFactorNetwork in project aic-praise by aic-sri-international.

the class TestCases method uaiModelToListOfExpressionFactors.

public static ArrayList<ExpressionFactor> uaiModelToListOfExpressionFactors(UAIModel model) {
    ExpressionFactorNetwork net = UAIModelToExpressionFactorNetwork.convert(model);
    ArrayList<ExpressionFactor> result = mapIntoArrayList(net.getAs(), (fwrapper) -> (ExpressionFactor) fwrapper.getObject());
    return result;
}
Also used : ExpressionFactorNetwork(com.sri.ai.praise.core.representation.interfacebased.factor.core.expression.core.ExpressionFactorNetwork) UAIModelToExpressionFactorNetwork(com.sri.ai.praise.core.representation.interfacebased.factor.core.expression.core.UAIModelToExpressionFactorNetwork) ExpressionFactor(com.sri.ai.praise.core.representation.interfacebased.factor.core.expression.api.ExpressionFactor) DefaultExpressionFactor(com.sri.ai.praise.core.representation.interfacebased.factor.core.expression.core.DefaultExpressionFactor)

Aggregations

ExpressionFactorNetwork (com.sri.ai.praise.core.representation.interfacebased.factor.core.expression.core.ExpressionFactorNetwork)6 Expression (com.sri.ai.expresso.api.Expression)5 Context (com.sri.ai.grinder.api.Context)4 CommonTheory (com.sri.ai.grinder.application.CommonTheory)4 TrueContext (com.sri.ai.grinder.core.TrueContext)4 Theory (com.sri.ai.grinder.api.Theory)3 DefaultExpressionVariable (com.sri.ai.praise.core.representation.interfacebased.factor.core.expression.core.DefaultExpressionVariable)3 ExactBP (com.sri.ai.praise.core.inference.byinputrepresentation.interfacebased.core.exactbp.fulltime.core.ExactBP)2 Factor (com.sri.ai.praise.core.representation.interfacebased.factor.api.Factor)2 ExpressionFactor (com.sri.ai.praise.core.representation.interfacebased.factor.core.expression.api.ExpressionFactor)2 ProceduralAttachments (com.sri.ai.praise.other.integration.proceduralattachment.api.ProceduralAttachments)2 DefaultProceduralAttachments (com.sri.ai.praise.other.integration.proceduralattachment.core.DefaultProceduralAttachments)2 Wrapper (com.sri.ai.util.base.Wrapper)2 Test (org.junit.Test)2 IncrementalAnytimeBeliefPropagationWithSeparatorConditioning (IncrementalAnytimeExactBeliefPropagation.IncrementalAnytimeBeliefPropagationWithSeparatorConditioning)1 BFS (IncrementalAnytimeExactBeliefPropagation.Model.BFS)1 Model (IncrementalAnytimeExactBeliefPropagation.Model.Model)1 PartitionTree (IncrementalAnytimeExactBeliefPropagation.PartitionTree)1 IntensionalSet (com.sri.ai.expresso.api.IntensionalSet)1 Bound (com.sri.ai.grinder.library.bounds.Bound)1