JSONPML2DOT
Generates a DOT file using a BigML JSON PML model as input
-
Install bigml:
pip install bigml
-
Set up your BIGML_USERNAME and BIGML_API_KEY
Setting up BigML authentication
export BIGML_USERNAME=myuser export BIGML_API_KEY=5ff31045b4f4582907d90011a5fab240442rc734e export BIGML_AUTH="username=$BIGML_USERNAME;api_key=$BIGML_API_KEY"
-
Simple usage
./jsonpml2dot --model model/53c4e07b48d9b63686000342 --output mymodel.dot
-
Generating a png
./jsonpml2dot --model model/53c4e07b48d9b63686000342 | dot -Tpng > mymodel.png
-
Generating a png from a public model
./jsonpml2dot.py --model public/model/53b2f21ec8db635905000d33 | dot -Tpng > heartdisease.png
-
Generating a png from shared model
./jsonpml2dot.py --model shared/model/vZ88ZkoIK2faSqDq7Wod7hFQxe5 | dot -Tpng > credit.png