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

predict_Weka_classifier

Model Predictions for R/Weka Classifiers


Description

Predicted values based on fitted Weka classifier models.

Usage

## S3 method for class 'Weka_classifier'
predict(object, newdata = NULL,
        type = c("class", "probability"), ...)

Arguments

object

an object of class inheriting from Weka_classifier.

newdata

an optional data frame in which to look for variables with which to predict. If omitted or NULL, the training instances are used.

type

character string determining whether classes should be predicted (numeric for regression, factor for classification) or class probabilities (only available for classification). May be abbreviated.

...

further arguments passed to or from other methods.

Value

Either a vector with classes or a matrix with the posterior class probabilities, with rows corresponding to instances and columns to classes.


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.