=================
sklearn_fab.utils
=================

--------------------
export_gate_tree_dot
--------------------
.. autofunction:: sklearn_fab.utils.export_gate_tree_dot

~~~~~~~~~~~~~
Output Format
~~~~~~~~~~~~~
The output is a pydot.Dot object or .dot file.
It can be used to create an image file like PNG format below.

Example of Bernoulli-gating function image:

.. image:: ../image/bern_gate_tree.png

Node (box-shaped) contents

  +-------------------------------------------------------------------+
  | Conditional expression                                            |
  +-------------------------------------------------------------------+
  | The number of samples passed down to the node                     |
  +-------------------------------------------------------------------+


Leaf (ellipse-shaped) contents

  +-------------------------------------------------+
  | The component ID                                |
  +-------------------------------------------------+
  | The number of samples assigned to the component |
  +-------------------------------------------------+
