Class ChowLiuStructuralLearning
- java.lang.Object
-
- com.bayesserver.learning.structure.ChowLiuStructuralLearning
-
- All Implemented Interfaces:
StructuralLearning
public final class ChowLiuStructuralLearning extends Object implements StructuralLearning
A structural learning algorithm for Bayesian networks based on the Chow-Liu algorithm. This algorithm uses tests (e.g. mutual information) to build a spanning tree, which is then directed to construct a Bayesian network.
-
-
Constructor Summary
Constructors Constructor Description ChowLiuStructuralLearning()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructuralLearningOutput
learn(EvidenceReaderCommandFactory readerCommandFactory, List<Node> nodes, StructuralLearningOptions options)
Learn the structure (links) of a Bayesian network.StructuralLearningOutput
learn(EvidenceReaderCommand evidenceReaderCommand, List<Node> nodes, StructuralLearningOptions options)
Learn the structure (links) of a Bayesian network.
-
-
-
Method Detail
-
learn
public StructuralLearningOutput learn(EvidenceReaderCommand evidenceReaderCommand, List<Node> nodes, StructuralLearningOptions options)
Learn the structure (links) of a Bayesian network.- Specified by:
learn
in interfaceStructuralLearning
- Parameters:
evidenceReaderCommand
- Can create a reader which iterates round the data used to learn the network.nodes
- The nodes to be considered for links.options
- Options for the structural learning algorithm.- Returns:
- The output generated by the structural learning algorithm.
-
learn
public StructuralLearningOutput learn(EvidenceReaderCommandFactory readerCommandFactory, List<Node> nodes, StructuralLearningOptions options)
Learn the structure (links) of a Bayesian network.- Specified by:
learn
in interfaceStructuralLearning
- Parameters:
readerCommandFactory
- Creates new evidence reader commands, which may be partitioned for use in cross validation.nodes
- The nodes to be considered for links.options
- Options for the structural learning algorithm.- Returns:
- The output generated by the structural learning algorithm.
-
-