Learn R Programming

unbalanced (version 2.0)

ubSmoteExs: ubSmoteExs

Description

Function used in SMOTE to generate new minority examples.

Usage

ubSmoteExs(data, tgt, N = 200, k = 5)

Arguments

data
the data.frame
tgt
the index of the target/response variables
N
N/100 is the number of new instances generated for each rare instance. If N < 100 a single instance is generated
k
the number of neighbours to consider as the pool from where the new examples are generated

Value

newCases

Details

This function does not handle vectors

See Also

ubSMOTE