How to work around exceeded INT_MAX levels without reducing parent nodes in bnlearn R library?

105 Views Asked by At

I have been trying to build a Bayesian Network based on a dataset using bnlearn library in R, but I've been receiving the error shown below.

Entered codes:

library(bnlearn)
bn.fit(dag, data = df, method = "bayes")

Received error:

Error in .table(data[, c(node, parents), drop = FALSE], with.missing = !all(data.info$complete.nodes[c(node, : attempting to create a table with more than INT_MAX cells.

I would like to keep the existing parent nodes. I'm wondering if there's a workaround for this error?

0

There are 0 best solutions below