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?