semvec/pypi-packages huggingface dataset:
causalmodels 0.4.0
Causal models in Python
License: MIT
Keywords: causality machine	learning causalmodels

causalmodels
============

causalmodels in Python.

instalation
-----------

::

    $ pip install causalmodels

usage
-----

::

    >>> import numpy as np
    >>> import pandas as pd
    >>> import causalmodels as cm
    >>> a = np.random.laplace(size=500)
    >>> b = np.random.laplace(size=500) + a
    >>> c = np.random.laplace(size=500) + a + b
    >>> data = pd.DataFrame({'a': a, 'b': b, 'c': c})
    >>> model = cm.DirectLiNGAM(data.values, data.columns)
    >>> results = model.fit()
    >>> results.order
    [2, 1, 0]
    >>> result.plot()
fnv 0.2.0
FNV hash functions.
License: MIT

=====
About
=====

This is a pure python implementation of FNV algorithm as specified in
http://isthe.com/chongo/tech/comp/fnv/.

Only works with Python 3.
And Python 2 is not planned to be supported.

Usage
=====

::

    $ pip install fnv

.. code:: python

    import fnv

    data = 'my data'
    fnv.hash(data, algorithm=fnv.fnv_1a, bits=64) # uses fnv.fnv_1a algorithm
    fnv.hash(data, bits=64) # fnv.fnv_1a is a default algorithm
    fnv.hash(data, algorithm=fnv.fnv, bits=64)