nutterb / HydeNet

Hybrid Decision Networks in R
Other
23 stars 3 forks source link

setNode(): params argument should now be optional #3

Closed jdutch27 closed 9 years ago

jdutch27 commented 9 years ago

net <- HydeNetwork(~ x) net <- setNode(net, x, nodeType="dcat", pi=vectorProbs(c(3, 6, 2), x)) Error in setNode(net, x, nodeType = "dcat", pi = vectorProbs(c(3, 6, 2), : argument "params" is missing, with no default

jdutch27 commented 9 years ago

Same issue for nodeFitter:

net <- setNode(net, x, nodeType="dbern", p=.4, params="") Error in setNode(net, x, nodeType = "dbern", p = 0.4, params = "") : argument "nodeFitter" is missing, with no default

jdutch27 commented 9 years ago

This worked:

net <- HydeNetwork(~ x) net <- setNode(net, x, nodeType="dbern", p=.4, params="", nodeFitter="") net A Probabilistic Graphical Network Has data attached: No

x dbern( = ) : x ~ 1