Provides a wrapper function to the Rock classifier: cluster memberships
of the (row) samples are determined by majority vote using the size (of
the cluster) weighted number of links.
The classifier uses random tie-breaking and assigns samples with zero link
counts to NA
. This allows for detection of possible outliers, or
interesting patterns.
In the case a drop
value greater than zero is specified, all
clusters with size equal or less than this value are removed from the
classifier. Especially, fitted
uses a threshold of one because
for singleton clusters the neighborhood is empty.
Note that for the training data the predicted memberships need not
necessarily be the same as those obtained from the cluster algorithm.