Skip to main content

Python Package with quality covers C++ extension

Project description

Quality covers

Quality covers is a pattern mining algorithm.

How to use

pip install --upgrade quality_covers

Transactional file

If your file looks like this

chess.dat:

1 3 5 7 10 
1 3 5 7 10 
1 3 5 8 9 
1 3 6 7 9 
1 3 6 8 9 

or

P30968
P48551 P17181
P05121 Q03405 P00747 P02671
Q02643
P48551 P17181

use

import quality_covers

quality_covers.run_classic_size("chess.dat", False)

Binary file

If your file looks like this

chess.data:

1 0 1 0 1 0 1 0 0 1
1 0 1 0 1 0 1 0 0 1
1 0 1 0 1 0 0 1 1 0
1 0 1 0 0 1 1 0 1 0
1 0 1 0 0 1 0 1 1 0

use

import quality_covers

quality_covers.run_classic_size("chess.data", True)

Output of the functions

The functions will create two files in current directory:

  • chess.data.out: the result file
  • chess.data.clock: information about time execution

Extract binary matrices

You can obtain binary matrices by calling extract_binary_matrices on the output file

quality_covers.extract_binary_matrices('chess.data.out')

More info

Paper associated

To come

Research lab

More tools about association rules

Authors

Amira Mouakher (amira.mouakher@u-bourgogne.fr) Nicolas Gros (nicolas.gros01@u-bourgogne.fr) Sebastien Gerin (sebastien.gerin@sayens.fr)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

quality_covers-2.1.0-cp38-cp38-manylinux1_x86_64.whl (316.1 kB view hashes)

Uploaded CPython 3.8

quality_covers-2.1.0-cp37-cp37m-manylinux1_x86_64.whl (315.9 kB view hashes)

Uploaded CPython 3.7m

quality_covers-2.1.0-cp36-cp36m-manylinux1_x86_64.whl (315.9 kB view hashes)

Uploaded CPython 3.6m

quality_covers-2.1.0-cp35-cp35m-manylinux1_x86_64.whl (315.9 kB view hashes)

Uploaded CPython 3.5m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page