strange | R Documentation |
strange
invokes a weird method – that is a wrapper around a
pre-existing anomaly detection measure (distance, probability...). stranger
allows to invoke several weird methods in a single call.
strange(data, weird = "knn", tuneGrid = NULL, colname = NULL, ...)
data |
crazy data, ie outcome of a call to |
weird |
Weird method to be used - for the list of available methods, use |
tuneGrid |
(optional) vector or data.frame of values for the parameters of the invoked method. |
colname |
(optional) character - name to be given to the resulting anomaly metric computation (distance/probability). |
... |
additional parameters to be passed to the invoked weird method. |
weirdList |
List of weirds methods names. |
You will use strange
to use one method and may be interested by stranger
if you wants to apply different methods in a single call.
When comparing stranger
package with caret
, strange
function is the
equivalent of train
, where as stranger
corresponds to caretEnsemble
function and package.
stranger object – that is a data.table with attributes and overloaded with class stranger
library(stranger) data(iris) crazydata <- crazyfy(iris[,1:4]) curious <- strange(crazydata, weird="knn")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.