Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict_Weka_clusterer

Class Predictions for R/Weka Clusterers


Description

Predict class ids or memberships based on fitted Weka clusterers.

Usage

## S3 method for class 'Weka_clusterer'
predict(object, newdata = NULL,
        type = c("class_ids", "memberships"), ...)

Arguments

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. May be abbreviated.

...

further arguments passed to or from other methods.

Details

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


RWeka

R/Weka Interface

v0.4-43
GPL-2
Authors
Kurt Hornik [aut, cre] (<https://orcid.org/0000-0003-4198-9911>), Christian Buchta [ctb], Torsten Hothorn [ctb], Alexandros Karatzoglou [ctb], David Meyer [ctb], Achim Zeileis [ctb] (<https://orcid.org/0000-0003-0918-3766>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.