# `Denstream_with_dbscan`

### *class* capymoa.cluster.Denstream_with_dbscan[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/cluster/_denstream_with_dbscan.py#L10)

Bases: [`MOAClusterer`](capymoa.base.MOAClusterer.md#capymoa.base.MOAClusterer)

Denstream clustering algorithm with DBSCAN Macro-clustering.

#### \_\_init_\_(schema: [Schema](capymoa.stream.Schema.md#capymoa.stream.Schema) | [None](https://docs.python.org/3/builtins/constants.html#None) = None, horizon: [int](https://docs.python.org/3/builtins/functions.html#int) = 1000, epsilon: [float](https://docs.python.org/3/builtins/functions.html#float) = 0.02, beta: [float](https://docs.python.org/3/builtins/functions.html#float) = 0.2, mu: [int](https://docs.python.org/3/builtins/functions.html#int) = 1, init_points: [int](https://docs.python.org/3/builtins/functions.html#int) = 1000, offline_option: [float](https://docs.python.org/3/builtins/functions.html#float) = 2, lambda_option: [float](https://docs.python.org/3/builtins/functions.html#float) = 0.25, speed: [int](https://docs.python.org/3/builtins/functions.html#int) = 100)[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/cluster/_denstream_with_dbscan.py#L15)

Clustream clusterer.

* **Parameters:**
  * **schema** – The schema of the stream
  * **horizon** – The size of the time window
  * **epsilon** – The epsilon neighborhood
    :param beta: The beta parameter
    :param mu: The mu parameter
    :param init_points: The number of initial points
    :param offline_option: The offline multiplier for epsilon
    :param lambda_option: The lambda option
    :param speed: Number of incoming data points per time unit

#### cli_help()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/base/_base.py#L258)

#### *classmethod* from_params(schema: [Any](https://docs.python.org/3/library/typing.html#typing.Any) = None, params: [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [Any](https://docs.python.org/3/library/typing.html#typing.Any)] | [None](https://docs.python.org/3/builtins/constants.html#None) = None, random_seed: [int](https://docs.python.org/3/builtins/functions.html#int) = 1) → [Any](https://docs.python.org/3/library/typing.html#typing.Any)[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/base/_learner_params.py#L170)

Construct an instance from parameters produced by `get_params`.

#### get_clustering_result()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/base/_base.py#L308)

#### get_micro_clustering_result()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/base/_base.py#L320)

#### get_params() → [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [Any](https://docs.python.org/3/library/typing.html#typing.Any)][[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/base/_learner_params.py#L163)

Return the hyper-parameters captured from the constructor.

#### implements_macro_clusters() → [bool](https://docs.python.org/3/builtins/functions.html#bool)[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/cluster/_denstream_with_dbscan.py#L58)

#### implements_micro_clusters() → [bool](https://docs.python.org/3/builtins/functions.html#bool)[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/cluster/_denstream_with_dbscan.py#L55)

#### train(instance)[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/base/_base.py#L261)
