cppredict

0th

Percentile

Posterior Class Probabilities

Compute posterior class distributions for fitted Weka classifier models (if possible) by applying the Weka method distributionForInstance to each test instance.

Keywords
models
Usage
cppredict(object, newdata, ...)
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.
...
further arguments passed to or from other methods.
Value

  • A matrix with the posterior class probabilities, with rows corresponding to instances and columns to classes.

Aliases
  • cppredict
Examples
m <- J48(Species ~ ., data = iris)
cppredict(m)[1:10, ]
Documentation reproduced from package RWeka, version 0.1-0, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.