Data Mining Algorithms In R/Packages/RWeka/Predict Weka Clusterer

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Description[edit | edit source]

Predict class ids or memberships based on fitted Weka clusterers.

Usage[edit | edit source]

predict(object, newdata = NULL, type = c("class_ids", "memberships"), ...)

Arguments[edit | edit source]

object, an object of class inheriting from Weka_clusterer.

newdata, an optional data set for predictions are sought. This must be given for predicting class memberships. If omitted or NULL, the training instances are used for predicting class ids.

type, a character string indicating whether class ids or memberships should be returned.

Further arguments passed to or from other methods.

Details[edit | edit source]

It is only possible to predict class memberships if theWeka clusterer provides a distributionForInstance method.