LearningHC {MoTBFs} | R Documentation |
Learning Hybric Bayesian Networks
Description
Get a directed acyclic graph using the method hill climbing. It is a mathematical optimization technique which belongs to the family of local search. It is an iterative algorithm which deals with discrete and continuous variables.
Usage
LearningHC(dataset, numIntervals = NULL)
Arguments
dataset |
A dataset with discrete and continuous variables. Discrete variables
must be of class |
numIntervals |
A |
Value
The output is a "bn"
object containing the learned graph.
See Also
Examples
## Data
data(ecoli)
ecoli <- ecoli[,-1] ## Sequence Name
## DAG1
dag1 <- LearningHC(ecoli)
dag1
plot(dag1)
## DAG2
dag2 <- LearningHC(ecoli, numIntervals = 10)
dag2
plot(dag2)
[Package MoTBFs version 1.2 Index]