Module es.upm.fi.cig.multictbnc
Class MultiCTNBC<NodeTypeBN extends Node,NodeTypeCTBN extends Node>
java.lang.Object
es.upm.fi.cig.multictbnc.models.AbstractPGM<Node>
es.upm.fi.cig.multictbnc.models.MultiCTBNC<NodeTypeBN,NodeTypeCTBN>
es.upm.fi.cig.multictbnc.models.submodels.MultiCTNBC<NodeTypeBN,NodeTypeCTBN>
- Type Parameters:
NodeTypeBN- type of the nodes of the BN (class subgraph)NodeTypeCTBN- type of the nodes of the CTBN (feature subgraph)
- All Implemented Interfaces:
Classifier,PGM<Node>
public class MultiCTNBC<NodeTypeBN extends Node,NodeTypeCTBN extends Node>
extends MultiCTBNC<NodeTypeBN,NodeTypeCTBN>
Specifies the structure constraints of a multidimensional continuous-time naive Bayes classifier (Multi-CTBNC) where
any subgraph has arcs except the bridge subgraph (fully naive multi-dimensional classifier).
-
Constructor Summary
ConstructorsConstructorDescriptionMultiCTNBC(BNLearningAlgorithms bnLearningAlgs, CTBNLearningAlgorithms ctbnLearningAlgs, Class<NodeTypeBN> bnNodeClass, Class<NodeTypeCTBN> ctbnNodeClass) Constructs a multidimensional continuous-time naive Bayes classifier given the learning algorithms for BNs and CTBNs. -
Method Summary
Modifier and TypeMethodDescriptionReturns aStringthat identifies the model.Returns the structure constraints for the BN.Returns the structure constraints for the CTBN.getType()Provides the type of PGM.Methods inherited from class es.upm.fi.cig.multictbnc.models.MultiCTBNC
areParametersEstimated, getBN, getCTBN, getInitialStructure, getLearningAlgsBN, getLearningAlgsCTBN, getNameFeatureVariables, getNodes, getNodesClassVariables, getNodesCTBN, getNodesCTBNInMarkovBlanketClassVariables, getNodesFeatureVariables, getNumClassVariables, getNumFeatureVariables, getTypeNodeClassVariable, getTypeNodeFeature, learn, learnParameters, learnParameters, predict, sample, sample, setBnLearningAlgs, setCtbnLearningAlgs, setInitialStructure, toString, update, updateBridgeAndFeatureSubgraphMethods inherited from class es.upm.fi.cig.multictbnc.models.AbstractPGM
addNodes, computeSufficientStatistics, display, display, display, getAdjacencyMatrix, getDataset, getHyperparameters, getIndexNodes, getIndexOfNode, getNamesNodesByIndex, getNameVariables, getNodeByIndex, getNodeByName, getNodeClass, getNodeFactory, getNodeIndexer, getNumNodes, getParameterLearningAlg, getStructureConstraints, getStructureLearningAlg, initialiseModel, isStructureLegal, learn, learn, learn, learnParameters, learnParameters, learnParameters, learnParameters, removeAllEdges, removeAllNodes, saveGraph, setDataset, setNameVariables, setParameterLearningAlgorithm, setStructure, setStructure, setStructure, setStructureConstraints, setStructureLearningAlgorithm, setStructureModifiedNodes
-
Constructor Details
-
MultiCTNBC
public MultiCTNBC(BNLearningAlgorithms bnLearningAlgs, CTBNLearningAlgorithms ctbnLearningAlgs, Class<NodeTypeBN> bnNodeClass, Class<NodeTypeCTBN> ctbnNodeClass) Constructs a multidimensional continuous-time naive Bayes classifier given the learning algorithms for BNs and CTBNs.- Parameters:
bnLearningAlgs- parameter and structure learning algorithms for a Bayesian networkctbnLearningAlgs- parameter and structure learning algorithms for a continuous-time Bayesian networkbnNodeClass- Bayesian network node typectbnNodeClass- continuous-time Bayesian network node type
-
-
Method Details
-
getStructureConstraintsBN
Description copied from class:MultiCTBNCReturns the structure constraints for the BN.- Overrides:
getStructureConstraintsBNin classMultiCTBNC<NodeTypeBN extends Node,NodeTypeCTBN extends Node> - Returns:
- a
StructureConstraint
-
getStructureConstraintsCTBN
Description copied from class:MultiCTBNCReturns the structure constraints for the CTBN.- Overrides:
getStructureConstraintsCTBNin classMultiCTBNC<NodeTypeBN extends Node,NodeTypeCTBN extends Node> - Returns:
- a
StructureConstraint
-
getModelIdentifier
Description copied from interface:PGMReturns aStringthat identifies the model.- Specified by:
getModelIdentifierin interfacePGM<NodeTypeBN extends Node>- Overrides:
getModelIdentifierin classMultiCTBNC<NodeTypeBN extends Node,NodeTypeCTBN extends Node> - Returns:
Stringthat identifies the model
-
getType
Description copied from interface:PGMProvides the type of PGM.- Specified by:
getTypein interfacePGM<NodeTypeBN extends Node>- Overrides:
getTypein classMultiCTBNC<NodeTypeBN extends Node,NodeTypeCTBN extends Node> - Returns:
- string describing the type of PGM
-