Custom Python Model

For a Custom Model, you write Python code. Your Python code must create a 'clf' variable.
This clf must be a scikit-learn compatible model, ie, have at least fit(X), fit_predict(X) and predict(X) methods, and follow the documentation on handling attributes.
Prediction should be an integer between 0 and (n_clusters - 1).

More information available in the documentation.

A name for your model.
Enable to specify a set number of clusters for your model.
In your code, you can access this value through the 'n_clusters' variable.