Skip to main content

Modular Association Rules for Classification Algorithms

Project description

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

Project details


Download files

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

Source Distribution

marca-0.1.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marca-0.1.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file marca-0.1.0.tar.gz.

File metadata

  • Download URL: marca-0.1.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.5.0-26-generic

File hashes

Hashes for marca-0.1.0.tar.gz
Algorithm Hash digest
SHA256 de31a0e52c3b3ec5bf40298d1f56a1de42ec94d6570f2f505d6fdc49faf83fea
MD5 cc56828151b1483a6eb1cd071edfa0aa
BLAKE2b-256 401e1fd11ef817191587ba9a970480d1b00abe53215c8b7e31131e0168c6cdb5

See more details on using hashes here.

File details

Details for the file marca-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: marca-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.5.0-26-generic

File hashes

Hashes for marca-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e3630fe512cb59a7997e039be85194aad83a5dfa1c0bc34ee83e23d1284f769
MD5 9b1ea03888d2faca1f70cea234ba8fbd
BLAKE2b-256 4a541329f39bc7ac9fb2937e37130bba3f34fda24e400fb42bc37b043f589f13

See more details on using hashes here.

Supported by

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