Installation#
spmviz requires Python 3.10 or newer and depends on NumPy, SciPy, NetworkX,
pandas and matplotlib.
pip install spmviz
Optional extras#
pip install "spmviz[interactive]" # plotly and pyvis figures
pip install "spmviz[interop]" # igraph, openpyxl, pm4py
pip install "spmviz[backends]" # the prefixspan, seq2pat and gsppy miners
pip install "spmviz[ml]" # scikit-learn, UMAP for very large pattern sets
pip install "spmviz[all]" # all of the above
pip install "spmviz[dev]" # everything, plus pytest, ruff, build and twine
The SPMF back end needs Java and a copy of spmf.jar from the SPMF web site;
pass its path as jar=... or set the SPMVIZ_SPMF_JAR environment variable.
The benchmark databases are downloaded on first use into ~/spmviz_data (or the
directory in SPMVIZ_DATA).
From source#
git clone https://github.com/ComplexSystemsIntelligence/spmviz.git
cd spmviz
pip install -e ".[dev]"
pytest
Building the documentation and the book#
python docs/build_api_pages.py
sphinx-build -b html docs docs/_build/html # executes every gallery example
book/build.sh # needs TeX Live with latexmk, biber and
# the raleway, plex and libertinus packages
python tools/benchmark.py # run times on the SPMF benchmarks