Skip to content

Commit

Permalink
Updated README (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrParosk authored Jul 27, 2024
1 parent e61e8f9 commit fc12626
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,30 @@ Implementation of the algorithm [Density-Based Clustering over an Evolving Data
## Installation

```Shell
pip install git+https://github.com/MrParosk/pyDenStream.git
pip install denstream
```

## Example
## Example usage

An example of how to use this package is included in *examples/user_guide.ipynb*.
```python
import numpy as np
from denstream import DenStream

# Model parameters
eps = 0.3
lambd = 0.1
beta = 0.2
mu = 10
min_samples = 1

model = DenStream(eps, beta, mu, lambd, min_samples)

x = np.array([[1, 2]])
t = 0

model.partial_fit(x, t)
```

## In depth example

A more in depth example of how to use this package is included in *examples/user_guide.ipynb*.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["setuptools>=61.0", "wheel>=0.37.1"]

[project]
name = "denstream"
version = "0.1"
version = "0.1.1"
description = "Implementation of the DenStream algorithm"
readme = "README.md"
requires-python = ">=3.8, <3.13"
Expand Down

0 comments on commit fc12626

Please sign in to comment.