I'm trying to determine the probability of a new record to belong to an existing data-set. I'm using the BNlearn R package to build a Bayesian Network using a large training set.
I then want to assess how anomalous a new record is. For this I want to get a probability for a record for which I have full evidence but don't need to predict any variable.
The pcquery method seems to require at least one variable to predict. The documentation states that the predict method will ignore entries with full evidence.
I spent a day searching the BNlearn documentation without success. So I think it is either not possible with BNlearn or I'm missing the right vocabulary to find what I need in the docs.
Any insights from someone who has more experience with BNlearn is welcome.