/jsonpml2dot

Generates a DOT file using a BigML json pml model as input

Primary LanguagePythonMIT LicenseMIT

JSONPML2DOT

Generates a DOT file using a BigML JSON PML model as input

  1. Install bigml:

     pip install bigml
    
  2. 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"
    
  3. Simple usage

     ./jsonpml2dot --model model/53c4e07b48d9b63686000342 --output mymodel.dot
    
  4. Generating a png

     ./jsonpml2dot --model model/53c4e07b48d9b63686000342 | dot -Tpng > mymodel.png
    
  5. Generating a png from a public model

     ./jsonpml2dot.py --model public/model/53b2f21ec8db635905000d33 | dot -Tpng > heartdisease.png
    

tree model

  1. Generating a png from shared model

     ./jsonpml2dot.py --model shared/model/vZ88ZkoIK2faSqDq7Wod7hFQxe5 | dot -Tpng > credit.png
    

tree model

[BigML's compact and interactive represenation](https://bigml.com/shared/model/vZ88ZkoIK2faSqDq7Wod7hFQxe5)