bootstrap_resampling: Bootsrap Resampling

Description Usage Arguments Value Author(s) Examples

View source: R/bootstrap_resampling.R

Description

Bootsrap Resampling for knn Classifier algorithm

Usage

1
2
bootstrap_resampling(data, target, times = 10, algorithm = "knn",
  metric = "Accuracy", ...)

Arguments

data

Dataframe that will be used

target

Integer with the column number of the target variable

times

Number of times to create resamples

algorithm

Only "knn" available

metric

Metric that will be evaluated. Possible values: "Accuracy", "Sensitivity" or "Specificity"

Value

Returns the mean values for the metric selected

Author(s)

Alberto Almui?a

Examples

1
data<-boostrap_resampling(data = iris, target = 5, times = 10, metric = "Sensitivity")

AlbertoAlmuinha/knnClassifier documentation built on Oct. 30, 2019, 4:48 a.m.