This package implements the Mapper algorithm.
Example:
>>> import lmapper as lm >>> mapper = lm.Mapper(data=x, >>> filter='Projection', >>> cluster='Linkage', >>> cover='BalancedCover') >>> mapper.fit() >>> mapper.plot()
The filterutils package uses OpenMP: to install it, run
$ brew install libomp
This should be enough. In case of problems, refer to the installation procedure in https://iscinumpy.gitlab.io/post/omp-on-high-sierra/
Once installed openmp as above, run the command
$ cd <path_to_this_directory> $ pip install .
this command will read the setup.py file in this directory and install both lmapper, and filterutils
Run the following tests:
$ python <path-to-this-folder>/lmapper/test/test_filterutils.py $ python <path-to-this-folder>/lmapper/test/test1.py
If no exeption is raised, the installation should be successful