Module es.upm.fi.cig.multictbnc
Class ClassifierFactory
java.lang.Object
es.upm.fi.cig.multictbnc.classification.ClassifierFactory
Provides static methods for the creation of classifiers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list with the currently available classifiers.static MultiCTBNC<CPTNode,
CIMNode> Generates aMulti-CTBNC
including some default nodes and algorithms for the learning of its parameters and structure.static MultiCTBNC
getMultiCTBNC
(String nameClassifier, BNLearningAlgorithms bnLearningAlgs, CTBNLearningAlgorithms ctbnLearningAlgs) Builds the specified classifier.static MultiCTBNC
getMultiCTBNC
(String nameClassifier, BNLearningAlgorithms bnLearningAlgs, CTBNLearningAlgorithms ctbnLearningAlgs, Map<String, String> hyperparameters) Builds the specified classifier with the provided hyperparameters.static <NodeTypeBN extends Node,
NodeTypeCTBN extends Node>
MultiCTBNC<NodeTypeBN,NodeTypeCTBN> getMultiCTBNC
(String nameClassifier, BNLearningAlgorithms bnLearningAlgs, CTBNLearningAlgorithms ctbnLearningAlgs, Map<String, String> hyperparameters, Class<NodeTypeBN> bnNodeClass, Class<NodeTypeCTBN> ctbnNodeClass) Builds the specified classifier with the provided hyperparameters.static MultiCTBNC<CPTNode,
CIMNode> Generates aMulti-CTBNC
including some default nodes and algorithms for the learning of its parameters and structure.static MultiCTBNC<CPTNode,
CIMNode> Generates aMulti-CTBNC
including some default nodes and algorithms for the learning of its parameters and structure.static MultiCTBNC<CPTNode,
CIMNode> Generates aMulti-CTBNC
including some default nodes and algorithms for the learning of its parameters and structure.
-
Constructor Details
-
ClassifierFactory
public ClassifierFactory()
-
-
Method Details
-
getAvailableModels
Returns a list with the currently available classifiers.- Returns:
- list of available classifiers
-
getMultiCTBNC
public static MultiCTBNC getMultiCTBNC(String nameClassifier, BNLearningAlgorithms bnLearningAlgs, CTBNLearningAlgorithms ctbnLearningAlgs) Builds the specified classifier. The node type for the class variables is assumed to be aCPTNode
, while for a feature variable aCIMNode
.- Parameters:
nameClassifier
- name of the classifier to buildbnLearningAlgs
- parameter and structure learning algorithms for Bayesian networksctbnLearningAlgs
- parameter and structure learning algorithms for continuous-time Bayesian networks- Returns:
- a
MultiCTBNC
-
getMultiCTBNC
public static MultiCTBNC getMultiCTBNC(String nameClassifier, BNLearningAlgorithms bnLearningAlgs, CTBNLearningAlgorithms ctbnLearningAlgs, Map<String, String> hyperparameters) Builds the specified classifier with the provided hyperparameters. The node type for the class variables is assumed to be aCPTNode
, while for a feature variable aCIMNode
.- Parameters:
nameClassifier
- name of the classifier to buildbnLearningAlgs
- parameter and structure learning algorithms for Bayesian networksctbnLearningAlgs
- parameter and structure learning algorithms for continuous-time Bayesian networkshyperparameters
- specific hyperparameters for each type of classifier- Returns:
- a
MultiCTBNC
-
getMultiCTBNC
public static <NodeTypeBN extends Node,NodeTypeCTBN extends Node> MultiCTBNC<NodeTypeBN,NodeTypeCTBN> getMultiCTBNC(String nameClassifier, BNLearningAlgorithms bnLearningAlgs, CTBNLearningAlgorithms ctbnLearningAlgs, Map<String, String> hyperparameters, Class<NodeTypeBN> bnNodeClass, Class<NodeTypeCTBN> ctbnNodeClass) Builds the specified classifier with the provided hyperparameters.- Type Parameters:
NodeTypeBN
- type of the nodes of the Bayesian networkNodeTypeCTBN
- type of the nodes of the continuous-time Bayesian network- Parameters:
nameClassifier
- name of the classifier to buildbnLearningAlgs
- parameter and structure learning algorithms for Bayesian networksctbnLearningAlgs
- parameter and structure learning algorithms for continuous-time Bayesian networkshyperparameters
- specific hyperparameters for each type of classifierbnNodeClass
- Bayesian network node typectbnNodeClass
- continuous-time Bayesian network node type- Returns:
- a
MultiCTBNC
-
getMultiCTBNC
Generates aMulti-CTBNC
including some default nodes and algorithms for the learning of its parameters and structure. This method was thought to easily generate the classifier.- Returns:
- a
Multi-CTBNC
-
getMultiCTBNCLearnedWithCTPC
Generates aMulti-CTBNC
including some default nodes and algorithms for the learning of its parameters and structure. This method was thought to easily generate the classifier. The algorithms could be later modifier.- Returns:
- a
Multi-CTBNC
-
getMultiCTBNCLearnedWithHybridAlgorithm
Generates aMulti-CTBNC
including some default nodes and algorithms for the learning of its parameters and structure. This method was thought to easily generate the classifier. The algorithms could be later modifier.- Returns:
- a
Multi-CTBNC
-
getMultiCTBNCLearnedWithMBCTPC
Generates aMulti-CTBNC
including some default nodes and algorithms for the learning of its parameters and structure. This method was thought to easily generate the classifier. The algorithms could be later modifier.- Returns:
- a
Multi-CTBNC
-