smotefamily::SMOTE -> Error in get.knnx(data, query, k, algorithm) : Data non-numeric

Viewed 1048

I'm having some issues using SMOTE, from the smotefamily package, my code keeps getting this error:

Error in get.knnx(data, query, k, algorithm) : Data non-numeric

I'm new at R Language, I'm trying to make the following work:

dados_treino_bal <- SMOTE(X = dados_treino, target = dados_treino$Inadimplente, K = ~ ., dup_size = 0)

SMOTE(X, target, K = 5, dup_size = 0)

Considering my dataset is correct with the proposed factors not all data is numeric, but that's how it's supposed to be right ?

For K I'm considering ~ + . to indicate I want all predictors variables

0 Answers
Related