| tl_anomaly_aware | R Documentation |
Detect outliers using DBSCAN or other methods, then optionally remove them or down-weight them before supervised learning.
tl_anomaly_aware(
data,
formula,
response,
anomaly_method = "dbscan",
action = "flag",
supervised_method = "logistic",
...
)
data |
A data frame |
formula |
Model formula |
response |
Response variable name |
anomaly_method |
Method for anomaly detection: "dbscan", "isolation_forest" |
action |
Action to take: "remove", "flag", "downweight" |
supervised_method |
Supervised learning method |
... |
Additional arguments |
A tidylearn model or list with model and anomaly info
model <- tl_anomaly_aware(iris, Species ~ ., response = "Species",
anomaly_method = "dbscan", action = "flag")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.