powered by
Compute the Adjustment Identification Distance (AID) between two graphs using the gadjid Rust package.
gadjid
aid(truth, guess, type = c("oset", "ancestor", "parent"), normalized = TRUE)
A numeric representing the AID between the two graphs, if normalized = TRUE, or an integer count if normalized = FALSE.
normalized = TRUE
normalized = FALSE
A caugi object.
caugi
A character string specifying the type of AID to compute. Options are "oset" (default), "ancestor", and "parent".
"oset"
"ancestor"
"parent"
Logical; if TRUE, returns the normalized AID. If FALSE, returns the count.
TRUE
FALSE
Other metrics: hd(), shd()
hd()
shd()
set.seed(1) truth <- generate_graph(n = 100, m = 200, class = "DAG") guess <- generate_graph(n = 100, m = 200, class = "DAG") aid(truth, guess) # 0.0187
Run the code above in your browser using DataLab