Learn R Programming

r.blip

R binding for Blip (Bayesian network Learning Improved Project)

Install

You can simply use:

''' devtools::install_github(“mauro-idsia/r.blip”) '''

Or you can download this git and then go with:

''' ./publish.sh '''

Example

Minimal example: learns a BN from 'child-5000.dat' dataset:

''' library('foreign') library('bnlearn') library('r.blip') dat <- read.table('https://raw.githubusercontent.com/mauro-idsia/blip/master/data/child-5000.dat', sep = ' ') bn <- blip.learn(dat, time = 10) '''

The resulting Bayesian network is in bnlearn format.

Copy Link

Version

Install

install.packages('r.blip')

Monthly Downloads

152

Version

1.1

License

LGPL-3

Maintainer

Mauro Scanagatta

Last Published

February 27th, 2019

Functions in r.blip (1.1)

blip

Bayesian Learning Package - Main function.
blip.learn.tw

Learns a BN with a treewidth bound
child.jkl

Parent set cache for the child dataset
child

Child dataset
blip.scorer

Parent set exploration
write.jkl

Jkl writer (with names)
blip.solver

Structure Optimization
read.jkl

Jkl reader
blip.solver.tw

Structure Optimization - treewidth bound
read.str

Structure reader
blip.learn

Learns a BN