Skip to main content

Generalized Interval-extended Sequential Pattern mining

Project description

Generalized Interval-extended Sequential Pattern mining

Installation

cd interval-sequential-pattern-x.x.x
python3 -m pip install .

Quick Start

import gisp

a, b, c, d, e, f = 'a', 'b', 'c', 'd', 'e', 'f'
sequences = [
    [(0, {a}), (86400, {a, b, c}), (259200, {a, c})],
    [(0, {a, d}), (259200, {c})],
    [(0, {a, e, f}), (172800, {a, b})],
]

patterns = gisp.mine(
    sequences=sequences,
    itemize=lambda i: i // 86400,
    min_support=2,
    max_interval=172800,
)

References

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

gisp-1.0.1.tar.gz (16.9 kB view hashes)

Uploaded Source

Built Distribution

gisp-1.0.1-py3-none-any.whl (17.4 kB view hashes)

Uploaded Python 3

Supported by

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