fit birch
Use the birch algorithm when you want to divide data points into separate clusters using the scikit-learn BIRCH (balanced iterative reducing and clustering using hierarchies) algorithm.
Syntax
fit birch [option_name]=[value] [into '<model_name>']
[option_name]=[value]
|
Specify model parameters:
|
into
|
Specify the into keyword to store the learned model in an artifact that can later be applied to new search results with the apply operator. |
'<model_name>'
|
Specify the name of the model to save as an artifact, so that it can be used with the |
Usage
You can use the birch algorithm to divide data points into separate clusters. The algorithm assigns each event to a cluster and records this assignment in a newly created field called "cluster". This algorithm supports incremental fitting.
For information about the BIRCH algorithm, refer to scikit-learn documentation:
https://scikit-learn.org/stable/modules/clustering.html#birch
Examples
Example 1: Cluster data using BIRCH algorithm.
|fit Birch k=3 from petal_length petal_width sepal_length sepal_widths
Example 2: Apply hierarchical clustering with parameters.
|fit Birch k=3 from petal_length petal_width sepal_length sepal_width into "birch_model"