Search in sources :

Example 1 with TableBayesianModel

use of com.sri.ai.praise.learning.parameterlearning.representation.table.TableBayesianModel in project aic-praise by aic-sri-international.

the class TableBayesianModelTest method generateSickSunColdModel.

static TableBayesianModel generateSickSunColdModel() {
    TableBayesianNode sunNode = new TableBayesianNode(sunVariable, arrayList());
    TableBayesianNode coldNode = new TableBayesianNode(coldVariable, arrayList());
    TableBayesianNode sickNode = new TableBayesianNode(sickVariable, arrayList(sunVariable, coldVariable));
    List<TableBayesianNode> nodes = list(sickNode, sunNode, coldNode);
    TableBayesianModel sickSunColdModel = new TableBayesianModel(nodes);
    return sickSunColdModel;
}
Also used : TableBayesianNode(com.sri.ai.praise.learning.parameterlearning.representation.table.TableBayesianNode) TableBayesianModel(com.sri.ai.praise.learning.parameterlearning.representation.table.TableBayesianModel)

Aggregations

TableBayesianModel (com.sri.ai.praise.learning.parameterlearning.representation.table.TableBayesianModel)1 TableBayesianNode (com.sri.ai.praise.learning.parameterlearning.representation.table.TableBayesianNode)1