This repository contains fortran implementation of a proximal gradient method to estimate the structure of a Bayesian network without imposing the acyclicity constraint.
The subrutine NODAG
solve the following l1-penalized
minus log-likelihood minimization:
argmin -2log(det(A)) + trace( Sigma AA^t) + lambda ||A||_1
The fortran subrutine NODAG
can be easily used both from python and R
- python: compile
nodag.f
withf2py
usingf2py -llapack -c -m nodag nodag.f
- R: compile
nodag.f
withR CMD SHLIB nodag.f -llapack -lblas
Check the provided examples to see how to load and call the subroutine.