Skip to contents

Wrap ranger::predict.ranger() into a patroklos-compliant predict function

Usage

# S3 method for class 'ptk_ranger'
predict(object, newx, ...)

Arguments

object

A ptk_ranger S3 object.

newx

Predictor data as a named numeric matrix. Samples correspond to rows, an attribute li_var_suffix is expected to be present.

...

Further arguments passed to the wrapped function.

Value

A named numeric vector of ensemble vote share for every sample ( i.e. a continuous value between 0 and 1).