Modular Association Rule for Classification Algorithms (MARCA)
MARCA is a toolkit for classification based on association rules. It is a modular framework that allows the user to choose the best algorithms for each step of the classification process. The toolkit is implemented in Python and is available under the MIT license.
Installation
To install the toolkit, you can use the following command:
pip install marca
Usage
from marca.extract import Apriori
import numpy as np
# Extract association rules
data = np.array([[1,3,6],
[1,4,6],
[1,4,5],
[2,3,5],
[1,4,5]])
x, y = data[:, :-1], data[:, -1]
extractor = Apriori(support=0.1, confidence=0.5, max_len=5)
rules = extractor.fit(x, y)
rules.to_csv('Rules.csv')
Algorithms implemented
Extraction
- Apriori
- AprioriT
- AprioriC
- FP-Growth
- MSApriori
- MSAprioriPartitioned
Ranking
- CBA
- Borda (Mean, Median, L2, Geometric)
- Topsis
- WSM
- WPM
- Bouker
- BTL
Pruning
- M1
- Dynamic
- Coverage
Classification
- CBA (OrdinalClassification)
- Probability
- RankedBased
- Voting
Interest Measures implemented
- Accuracy
- Added_value
- Chi_square
- Collective_strength
- Complement_class_support
- Conditional_entropy
- Confidence
- Confidence_causal
- Confirm_causal
- Confirm_descriptive
- Confirmed_confidence_causal
- Correlation_coefficient
- Cosine
- Coverage
- Dir
- F_measure
- Gini_index
- Goodman_kruskal
- Implication_index
- J_measure
- Kappa
- Klosgen
- K-measure
- Kulczynski 2
- Least_contradiction
- Leverage
- Lift
- Loevinger
- Logical_necessity
- Mutual_information
- Normalized_mutual_information
- Odd_multiplier
- Odds_ratio
- One_way_support
- Piatetsky Shapiro
- Prevalence
- Putative_causal_dependency
- Recall
- Relative_risk
- Specificity
- Support
- Theil Uncertainty Coefficiente
- Tic
- Two_way_support
Metadata
Release files for marca 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| marca-0.1.0.tar.gz | 11.0 kB | Without provenance | Details for marca-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| marca-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for marca-0.1.0-py3-none-any.whl |
Total release size: 25.7 kB
Release files / marca-0.1.0.tar.gz
| Download URL | marca-0.1.0.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de31a0e52c3b3ec5bf40298d1f56a1de42ec94d6570f2f505d6fdc49faf83fea
|
|
BLAKE2b-256 checksum How to use checksums |
401e1fd11ef817191587ba9a970480d1b00abe53215c8b7e31131e0168c6cdb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.6 Linux/6.5.0-26-generic
|
Release files / marca-0.1.0-py3-none-any.whl
| Download URL | marca-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e3630fe512cb59a7997e039be85194aad83a5dfa1c0bc34ee83e23d1284f769
|
|
BLAKE2b-256 checksum How to use checksums |
4a541329f39bc7ac9fb2937e37130bba3f34fda24e400fb42bc37b043f589f13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.6 Linux/6.5.0-26-generic
|
Security for marca 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.