=========================
sampo_vis fabhme_hardgate
=========================

.. contents:: Contents
    :local:

Overview
========

.. warning::

   sampo_vis fabhme_hardgate command is deprecated.

**sampo_vis fabhme_hardgate** visualizes Bernoulli and logistic gating functions represented by a tree structure, which are generated by a FAB/HME component.

|

Synopsis
========
See sampo_vis command help::

    $ sampo_vis fabhme_hardgate --help

|

Examples
========
With the following commands, learned gating functions of the **rg** component in the **fabhme_learn** process are visualized::

    $ sampo learn fabhme.spd fabhme_learn.src -s file:///var/process_store_storage
    $ sampo_vis fabhme_hardgate -p fabhme_learn -c rg -s file:///var/process_store_storage -o /var/output_dir

|

Output Format
=============
The output is a PNG format image file.


Example of Bernoulli gating functions image:

.. image:: ../image/fabhme_hardgate_bern.png


Example of logistic gating functions image:

.. image:: ../image/fabhme_hardgate_logit.png

Node (box-shaped) contents

  +-------------------------------------------------------------------+
  | Conditional expression                                            |
  +-------------------------------------------------------------------+
  | Destandardized conditional expression (displayed if standardized) |
  +-------------------------------------------------------------------+
  | The number of samples passed down to the node                     |
  +-------------------------------------------------------------------+


Leaf (ellipse-shaped) contents

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