Module es.upm.fi.cig.multictbnc
Class MaxKCTBNC
java.lang.Object
es.upm.fi.cig.multictbnc.learning.structure.constraints.AbstractStructureConstraints
es.upm.fi.cig.multictbnc.learning.structure.constraints.CTBNC.MaxKCTBNC
- All Implemented Interfaces:
StructureConstraints
Implements the structure constraints of a Max-k continuous-time Bayesian network classifier, i.e., a CTBNC where the
number of parents of the feature nodes is bounded by a positive number (Codecasa and Stella, 2014).
-
Constructor Summary
ConstructorDescriptionMaxKCTBNC
(int maxK) Receives the maximum number of parents the nodes can have. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isStructureLegal
(boolean[][] adjacencyMatrix, NodeIndexer<? extends Node> nodeIndexer) Determines if the structure of a PGM is legal.Methods inherited from class es.upm.fi.cig.multictbnc.learning.structure.constraints.AbstractStructureConstraints
initialiseStructure, uniqueStructure
-
Constructor Details
-
MaxKCTBNC
public MaxKCTBNC(int maxK) Receives the maximum number of parents the nodes can have. If a positive number is not given, one parent is used.- Parameters:
maxK
- maximum number of parents the nodes of feature variables can have (without including nodes of class variables)
-
-
Method Details
-
isStructureLegal
public boolean isStructureLegal(boolean[][] adjacencyMatrix, NodeIndexer<? extends Node> nodeIndexer) Description copied from interface:StructureConstraints
Determines if the structure of a PGM is legal.- Parameters:
adjacencyMatrix
- adjacency matrixnodeIndexer
- node indexer that allows access to information about the nodes- Returns:
- true if the structure is legal, false otherwise
-