Skip to main content

Interest Measure Package for Association Rules and Class Association Rules

This package provides a set of interest measures for association rules and class association

Installation

pip install interest-measures

Usage

from interest_measures import InterestMeasures

im = InterestMeasures(A=[0.1, 0.2, 0.3, 0.4],
                      B=[0.5, 0.6, 0.7, 0.8],
                      AB=[0.1, 0.2, 0.3, 0.2], N=100)

print(im.confidence)  # [1. 1. 1. 0.5]
print(im.lift)  # [2. 1.66666667 1.42857143 0.625 ]
print(im.conviction)  # [inf inf inf 0.4]

Available Interest Measures

  • 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 interest-measures 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for interest-measures 0.0.2
File Size Uploaded Provenance Actions
interest_measures-0.0.2.tar.gz 3.8 kB Without provenance Details for interest_measures-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for interest-measures 0.0.2
File Interpreter ABI Platform Actions
interest_measures-0.0.2-py3-none-any.whl Python 3 none any Details for interest_measures-0.0.2-py3-none-any.whl

Total release size: 8.2 kB

Release files / interest_measures-0.0.2.tar.gz

Download URL interest_measures-0.0.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
99a9f6637a8c004694285ccae662ec854a6fda300dece5c891897072954ab075
BLAKE2b-256 checksum
How to use checksums
6a413ec54ca608cdc0dbd45be22987a4dda201849e1db4a466e3e30043ce564f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.9 Linux/6.5.0-35-generic

Release files / interest_measures-0.0.2-py3-none-any.whl

Download URL interest_measures-0.0.2-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04cb15d0c9feac4aabddc1995a5622059c6341990739886453749aa79713a96b
BLAKE2b-256 checksum
How to use checksums
d11c78d608930da9f3126ed3af8c8bbbd10474d088f4be0102936f56525253c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.9 Linux/6.5.0-35-generic

Security for interest-measures 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page