Skip to content

Instantly share code, notes, and snippets.

@mribeirodantas
Last active March 4, 2020 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mribeirodantas/48d59783fa2e7128caa2e253adf8d85e to your computer and use it in GitHub Desktop.
Save mribeirodantas/48d59783fa2e7128caa2e253adf8d85e to your computer and use it in GitHub Desktop.
# Create a miic.R file with the content below.
input_file <- read.csv(file = 'data/simulation_preprocessed.csv', sep=';')
library(miic)
input_file <- as.data.frame(sapply(input_file, as.factor))
res <- miic(input_file, propagation = F)
if (!dir.exists('output_dir')) {
dir.create('output_dir')
}
write.csv2(res$all.edges.summary,
'output_dir/all.edges.summary.csv',
row.names=FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment