Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions doc/KMeans.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@

The maximum number of iterations the algorithm will use whilst fitting.

:control initMethod:

The method used to initialize the clustering process.

:enum:

:0:
random partition: each input point is randomly assigned to a cluster.

:1:
random means: the initial means are sampled at random from the input points, which are then assigned to their nearest mean.

:2:
sampling: the initial means are sampled from the input points, weighted by an approximation of the input data distribution.

:message fit:

:arg dataSet: A :fluid-obj:`DataSet` of data points.
Expand Down
15 changes: 15 additions & 0 deletions doc/SKMeans.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@

The maximum number of iterations the algorithm will use whilst fitting.

:control initMethod:

The method used to initialize the clustering process.

:enum:

:0:
random partition: each input point is randomly assigned to a cluster.

:1:
random means: the initial means are sampled at random from the input points, which are then assigned to their nearest mean.

:2:
sampling: the initial means are sampled from the input points, weighted by an approximation of the input data distribution.

:message fit:

:arg dataSet: A :fluid-obj:`DataSet` of data points.
Expand Down