mml_cpt_cach: An auxiliary function for mml_pt()

Description Usage Arguments

View source: R/mml_cpt_cach.R

Description

Given a node x and its learned Markov blanket mb(x), this function pre-calculates the mml score of each node y in mb(x) given its potential parents. There are certain nodes that can't be parents of y, such as any subset that contains y, or any subset that doesn't contain the target node x, because if x is not a parent of y, then any parents of y must not exist in mb(x). This function helps speed up computing mmlcpt for an entire mbpt.

Usage

1
2
mml_cpt_cach(indexListPerNodePerValue, arities, sampleSize, vars, target,
  learnedMB)

Arguments

vars

A vector of all variables.

target

A taregt node.

learnedMB

The learned mb of the target node


kelvinyangli/mbmml documentation built on June 29, 2020, 3:12 a.m.