subgroups is a python library which contains a collection of subgroup discovery algorithms and other data analysis utilities.
Project description
subgroups - A Python library for Subgroup Discovery
Tests | |
Package | |
Metadata |
What is it?
subgroups
is a public, accessible and open-source python library created to work with the Subgroup Discovery (SD) technique. This library implements the necessary components related to the SD technique and contains a collection of SD algorithms and other data analysis utilities.
Quick install
The easiest way to obtain this library is from either PyPI (the Python Package Index) or Conda.
PyPI
For that, you can view and download the package from its PyPI page or directly install it by executing:
pip install subgroups
Conda
For that, you can view and download the package from its Anaconda.org page (conda-forge channel) or directly install it by executing:
conda install -c conda-forge subgroups
Testing
After installing the library, a collection of tests can be launched by executing:
import subgroups.tests as st
st.run_all_tests()
These tests verify that the library is correctly installed and that all components, algorithms and features are properly working.
Installing from source
The source code (latest development) is currently hosted on: https://github.com/antoniolopezmc/subgroups
Therefore, you need first to clone the repository:
git clone https://github.com/antoniolopezmc/subgroups.git
cd subgroups
After that, the library can be installed in production mode or in develop mode.
Production mode
make install_prod
or
python -m pip install ./
or
pip install ./
This mode installs the library as normal, copying it to the standard Python site-packages directory.
Develop mode
make install_dev
or
python -m pip install -e ./
or
pip install -e ./
This mode installs the library in editable mode, creating a link in the standard Python site-packages directory to the downloaded project directory (the current directory). See the pip_install documentation for further details.
Example of use of the algorithms
An example of use of each algorithm implemented in subgroups
python library can be found in the examples/algorithms
folder:
Documentation
The official documentation is hosted on https://www.um.es/subgroups/
Additionally, the source code of the project contains a folder called docs
, which includes the documentation of the library. This documentation can be also manually generated by executing:
cd docs
make build
or
cd docs
python clean.py source/project_files build
python -m pip install --upgrade sphinx
python -m pip install --upgrade sphinx-rtd-theme
python -m pip install --upgrade sphinx-autodoc-typehints
sphinx-apidoc -f -T -M -o source/project_files ../src/subgroups
sphinx-build -M html source build
The generated documentation will be located in the build
subfolder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file subgroups-0.1.8.tar.gz
.
File metadata
- Download URL: subgroups-0.1.8.tar.gz
- Upload date:
- Size: 181.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f4b5345edcaca7c38fb7f5102b6b192f101fcdcdf50c42565c05fb363f3f89c |
|
MD5 | b4c4697cf7096d21da8b99226b5a829d |
|
BLAKE2b-256 | db35e15d59a22f7802cd62d72cbda1a9d4dca1c15cdaccaa87d880005b63ec8d |
File details
Details for the file subgroups-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: subgroups-0.1.8-py3-none-any.whl
- Upload date:
- Size: 255.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02d367152556dcc595b5f3643c91ef4ddd5d760124d7d50d0151ebd11c98e685 |
|
MD5 | 3424063798b1ab9d841026c0c908b91d |
|
BLAKE2b-256 | cd8060656188b254ec1fa0d4fb76548db2a444f56e1dbe27fe47a7fb545ce1af |