ComeçarComece de graça

Converting character to factor

Both LOF and isolation forest can be trained using data containing categorical features, but it's easier if these are converted to factors first.

In this exercise, you'll revisit the thyroid data which contains some additional categorical features that will need to be converted.

Este exercício faz parte do curso

Introduction to Anomaly Detection in R

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Print the column classes in thyroid
sapply(X = ___, FUN = ___)
Editar e executar o código