fit DBSCAN
Use the DBSCAN algorithm when you want to fit a model to cluster the data using the scikit-learn DBSCAN (Density-Based Spatial Clustering of Applications with Noise) algorithm.
Syntax
fit DBSCAN [option_name]=[value] <fields>
[option_name]=[value]
|
Specify model parameters. The following model parameters are supported:
For information on the model parameters, refer to scikit learn documentation: https://scikit-learn.org/stable/modules/generated/sklearn.cluster.DBSCAN.html |
<fields>
|
Input fields for clustering. |
Usage
You can use the DBSCAN algorithm to fit a model that clusters the value of numeric fields using the scikit-learn DBSCAN algorithm. The input training data has to be preprocessed, encoded, and normalized if required before passing to this algorithm.
Examples
Example 1: Apply DBSCAN clustering algorithm.
|fit dbscan sepal_length sepal_width petal_length petal_width species
Example 2: Cluster data with custom parameters.
|fit dbscan eps=0.6 algorithm='ball_tree' sepal_length sepal_width petal