mml_with_parents_fast: Auxiliary function to mml_cpt_fast

Description Usage Arguments

View source: R/mml_with_parents_fast.R

Description

This is an auxiliary function to mml_cpt_fast. It calculates the mml score of a node given its parents.

Usage

1
2
mml_with_parents_fast(indexListPerNodePerValue, cachedIndicesList, arities,
  sampleSize, parentsIndices, targetIndex, alpha, statingPara)

Arguments

indexListPerNodePerValue

A list of stored indices for each value of each node. It is obtained by the function count_occurance().

cachedIndicesList

A vector of indices stored to speed up calculations.

arities

A vector of varaible arities.

sampleSize

Sample size of a given data set.

parentsIndices

Indices of parents nodes.

targetIndex

Index of the target node. #' @param alpha A vector of concentration parameters for a Dirichlet distribution. Range is from zeor to positive infinity, length is equal to the arity of the target variable.

statingPara

If TRUE MML estimate of the parameters are also stated with extra 0.5log(pi*e/6) per parameter, otherwise 0.


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