Basic implementation of Mutual Hazard Networks.
source("UtilityFunctions.R")
source("ModelConstruction.R")
source("Likelihood.R")
source("RegularizedOptimization.R")
Data <- readRDS(file="data/BreastCancer.rds")
#Learn an MHN from data with sparsity hyperparameter lambda
Theta <- MHN(Data, lambda=0.01)
#Generate a synthetic dataset from an MHN
SyntheticData <- SampleMHN(Theta, size=1000)
Mac users may get an error when compiling the C code and should install Xcode Command Line Tools via xcode-select --install
.