เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Introduction to Anomaly Detection in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Print the column classes in thyroid
sapply(X = ___, FUN = ___)
แก้ไขและรันโค้ด