Sleipnir
BNs2Txt

BNs2Txt converts a binary representation of a collection of naive Bayesian classifiers (Sleipnir::CBayesNetMinimal) into a set of (X)DSL files.

Usage

Basic Usage

 BNs2Txt -i <networks.bin> -o <network_dir> -d <datasets.txt>

Reads the binary naive Bayesian classifiers stored in networks.bin and the text file containing dataset (classifier node) names datasets.txt and creates one (X)DSL file per classifier in the output directory network_dir.

Detailed Usage

package "BNs2Txt"
version "1.0"
purpose "Text/binary minimal Bayes net file interconversion"

section "Main"
option  "input"         i   "Input Bayes net file"
                            string  typestr="filename"
option  "output"        o   "Output Bayes net directory"
                            string  typestr="directory" default="."
option  "datasets"      d   "Dataset names"
                            string  typestr="filename"

section "Optional"
option  "xdsl"          x   "Generate XDSL output rather than DSL"
                            flag    on
option  "verbosity"     v   "Message verbosity"
                            int default="5"
Flag Default Type Description
-i stdin Binary network file Binary naive Bayesian classifiers (Sleipnir::CBayesNetMinimal) stored by another tool (e.g. Counter).
-o . Directory Directory in which (X)DSL files are created.
-d None Text file Text file containing one dataset name per line. These correspond to the nodes of each classifier in the input file and are used to name the equivalent nodes in the output (X)DSL files.
-x on Flag If on, create XDSL files instead of DSL files.