Description Usage Arguments Details Value Examples
return predictions of various types for the isolation forest object
1 2 3 |
object |
an |
newdata |
a data.frame to predict |
... |
optional arguments not used. |
nodes |
if true return nobs x ntrees dim matrix with terminal node ids |
sparse |
if true return sparse Matrix of dimension nobs x nTerminalNodes. Each column represents a terminal node. There are as many ones in each row as there are trees in the forest. Each observation can only belong to one terminal node per tree. Useful for further modeling or to identify predictive interactions. |
replace_missing |
if TRUE, replaces missing factor levels with "." and missing
numeric values with the |
sentinel |
value to use as stand-in for missing numeric values |
By default the predict function returns an anomaly score. The anomaly score is a [0,1] scaled measure of isolation. Higher scores correspond to more isolated observations. If sparse or nodes are set to TRUE, a matrix of the requested type is returned.
A numeric vector of length nrow(newdata)
containing values between zero and one.
Values closer to zero are less likely to be anomalous.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.