rdkit.ML.DecTree.SigTree module — The RDKit 2016.09.1 documentation

# rdkit.ML.DecTree.SigTree module

Defines the class SigTreeNode, used to represent trees that use signatures (bit vectors) to represent data. As inputs (examples), SigTreeNode’s expect 3-sequences: (label,sig,act)

> _SigTreeNode_ is derived from _DecTree.DecTreeNode_

class `rdkit.ML.DecTree.SigTree.` `SigTreeNode`(*args, **kwargs)

  Bases: `rdkit.ML.DecTree.DecTree.DecTreeNode`

  `ClassifyExample`(example, appendExamples=0)

    Recursively classify an example by running it through the tree

    Arguments

    > - example: the example to be classified, a sequence at least 2 long:

    >   > ( id, sig )

    >   where sig is a BitVector (or something supporting __getitem__) additional fields will be ignored.

    > - appendExamples: if this is nonzero then this node (and all children) will store the example

    Returns

    > the classification of _example_

  `NameModel`(*args, **kwargs)