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')
Optional arguments
Threshold coverage
You can provide a threshold to the coverage.
# 60% of coverage
quality_covers.run_classic_size("chess.data", True, 0.6)
Measures
You can also ask for information about measures:
- frequency
- monocle
- separation
- object uniformity
quality_covers.run_classic_size("chess.data", True, 0.6, True)
3,4,9 ; 4,5,6,7,8#Object Uniformity=0.81944; Monocole=91.00000; Frequency=0.33333; Separation=0.48387
2,9 ; 1,3,7#Object Uniformity=0.68750; Monocole=28.00000; Frequency=0.22222; Separation=0.27273
1,6,9 ; 2,7#Object Uniformity=0.63889; Monocole=28.00000; Frequency=0.33333; Separation=0.31579
# Mandatory: 0
# Non-mandatory: 3
# Total: 3
# Coverage: 25/38(65.78947%)
# Mean frequency: 0.29630
# Mean monocole: 49.00000
# Mean object uniformity: 0.71528
# Mean separation: 0.35746
Different algorithms
There are currently four different algorithms:
run_classic_size
run_approximate_size
run_fca_cemb_with_mandatory
run_fca_cemb_without_mandatory
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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for quality_covers-3.0.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a329f69deef2cf2f677b9cba9a5186f18a375a2eb48a91afb310b8cd1440eaaa |
|
MD5 | 2be3708db37b48fa5d893b41d634de92 |
|
BLAKE2b-256 | bb0f64dbf35a068fa2db046d875b8328bac875ce374706e69ccb96822c618cd1 |
Close
Hashes for quality_covers-3.0.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4303c948027fed5d2c774121bc20f8c9186918946c0634ebf7f91bf3b776037f |
|
MD5 | 6adce2881ddba14eec00f8faf9c9f294 |
|
BLAKE2b-256 | bec70b53962eadcaeab190a18f2b63e77bafebbb6e92da69dd24f225be8c4255 |
Close
Hashes for quality_covers-3.0.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd542d94b6bf5b07ce01e829f957cc5373fc1b9f89dbbbceb39d79e4343a13a8 |
|
MD5 | 68d4cee0b1f1ce885690ff61a97068af |
|
BLAKE2b-256 | 72a14833345873f40dc174ad25ca7d3b351a25b116991aec45f297b83c7f0c18 |
Close
Hashes for quality_covers-3.0.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3b096185e3620a798468055b7e65988f9e92f43b50d0f9c0e8aca5fa04ff52 |
|
MD5 | c8a4d75b8258e315585e6828fe9f9d1e |
|
BLAKE2b-256 | e0ccfa12e25365fecd6856bcdd877d8ce8cc9176c63da3ca168cca228b7fd427 |