Metadata-Version: 2.1
Name: gisp
Version: 1.0.1
Summary: Generalized Interval-extended Sequential Pattern mining
Home-page: https://github.com/wu0306109/gisp
Author: wu0306109
Author-email: t110598007@ntut.org.tw
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE

# Generalized Interval-extended Sequential Pattern mining

## Installation

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

## Quick Start

```python
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

- Hirate, Y., & Yamana, H. (2006). Generalized sequential pattern mining with item intervals. Journal of Computers, 1(3), 51-60. https://doi.org/10.4304/jcp.1.3.51-60
