Skip to main content

TX-Means

TX-Means is a parameter-free clustering algorithm able to efficiently partitioning transactional data in a completely automatic way. TX-Means is designed for the case where clustering must be applied on a massive number of different datasets, for instance when a large set of users need to be analyzed individually and each of them has generated a long history of transactions.

In this repository we provide the source code of TX-Means, the clustering algorithm competitors and the dataset used in

Riccardo Guidotti, Anna Monreale, Mirco Nanni, Fosca Giannotti, Dino Pedreschi "Clustering Individual Transactional Data for Masses of Users", KDD 2017, 2017, Halifax, NS, Canada

Please cite the paper above if you use our code or dataets.

Where to get it

The source code is currently hosted on GitHub at: https://github.com/riccotti/TX-Means

How to install

pip install TXMeans

How to import (some examples)

from TXMeans.txmeans import TXmeans
from TXMeans.util import count_items, remap_items, sample_size (Util functions)
from TXMeans.util import basket_list_to_bitarray, basket_bitarray_to_list (Converting(Reverting) to(from) bitarray)
from TXMeans.datamanager import read_uci_data (Convert the data in nice basket format)
from TXMeans.validation_measures import delta_k, purity, normalized_mutual_info_score (Measure of Validation)
from TXMeans.util import jaccard_bitarray
Requirements:
  • python >= 3
  • numpy >= 1.10.1
  • pandas >= 0.18.1
  • scipy >= 0.17.1
  • bitarray >= 0.8.1
  • Java >= 8.1

Metadata

Release files for TXMeans 0.1.1

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

Source distribution (sdist)

Source distribution for TXMeans 0.1.1
File Size Uploaded
TXMeans-0.1.1.tar.gz 35.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TXMeans 0.1.1
File Interpreter ABI Platform
TXMeans-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 74.5 kB

Release files / TXMeans-0.1.1.tar.gz

Download URL TXMeans-0.1.1.tar.gz
Size 35.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c717de6e1e0d19214f435844b4ca6f4d709e7d388ed5de5b12ec07adda7a2055
BLAKE2b-256 checksum
How to use checksums
256d6e24c1f3bc376783c318abb9cfbe1b1ff1cf70625936ebac07606fcfe8aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.2

Release files / TXMeans-0.1.1-py3-none-any.whl

Download URL TXMeans-0.1.1-py3-none-any.whl
Size 39.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d3c190af7a12a0e6fb7bb3e3695699c7d6c9673e3209b29a70dd666f8d1b8ff
BLAKE2b-256 checksum
How to use checksums
b4fd7c9a21d8e164275794392d6881418f68cebfd691e8c35231a4e50c81a2f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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