ML.InfoTheory.rdInfoTheory.BitCorrMatGenerator

Package ML :: Package InfoTheory :: Module rdInfoTheory :: Class BitCorrMatGenerator |
[hide private]
[frames] | no frames]

# Class BitCorrMatGenerator

     object --+
              |
    ??.instance --+
                  |
                 BitCorrMatGenerator

    A class to generate a pariwise correlation matrix between a list of bits
    The mode of operation for this class is something like this
       >>> cmg = BitCorrMatGenerator()
       >>> cmg.SetBitList(blist)
       >>> for fp in fpList:
       >>>    cmg.CollectVotes(fp)
       >>> corrMat = cmg.GetCorrMatrix()

       The resulting correlation matrix is a one dimensional nummeric array containing the
       lower triangle elements

Instance Methods | [hide private]
CollectVotes(...) For each pair of on bits (bi, bj) in fp increase the correlation count for the pair by 1... |
GetCorrMatrix(...) Get the correlation matrix following the collection of votes from a bunch of fingerprints... |
SetBitList(...) Set the list of bits that need to be correllated... |
__init__(...) C++ signature:... |
Inherited from `unreachable.instance`: `__new__` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables | [hide private]
| __instance_size__ = `28`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### CollectVotes(...) |
    For each pair of on bits (bi, bj) in fp increase the correlation count for the pair by 1

    ARGUMENTS:

      - fp : a bit vector to collect the fingerprints from

    C++ signature:
        CollectVotes(RDInfoTheory::BitCorrMatGenerator*, boost::python::api::object) -> void*

### GetCorrMatrix(...) |
    Get the correlation matrix following the collection of votes from a bunch of fingerprints

    C++ signature:
        GetCorrMatrix(RDInfoTheory::BitCorrMatGenerator*) -> _object*

### SetBitList(...) |
    Set the list of bits that need to be correllated

     This may for example be ther top ranking ensemble bits

    ARGUMENTS:

      - bitList : an integer list of bit IDs

    C++ signature:
        SetBitList(RDInfoTheory::BitCorrMatGenerator*, boost::python::api::object) -> void*

### __init__(...) (Constructor) |
    C++ signature:
    __init__(_object*) -> void*
Overrides: object.__init__