Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> การเขียนโปรแกรม

ความแตกต่างระหว่าง Classification และ Regression


Classification (การจำแนกประเภท)

  • ให้ผลลัพธ์เป็น Discrete Values (ค่าตัวเลขไม่ต่อเนื่อง/หมวดหมู่)
  • จัดกลุ่มข้อมูลเป็นกลุ่มต่างๆ ตามเกณฑ์ต่างๆ
  • Unordered (ไม่มีลำดับ)
  • ใช้ Mapping Function แมปค่าไปยัง Pre-defined Classes
  • ตัวอย่าง: Decision Tree, Logistic Regression

Regression (การถดถอย/พยากรณ์)

  • ให้ผลลัพธ์เป็น Continuous Values (ค่าต่อเนื่อง)
  • ใช้ Mapping Function แมปค่าไปยัง Continuous Output
  • Ordered (มีลำดับ)
  • มี Dependent และ Independent Variables
  • พยายามหา Best Fit Line
  • พยายาม Extrapolate Graph เพื่อ Predict ค่า
  • ใช้ Root Mean Square Error Method
  • ตัวอย่าง: Regression Tree (Random Forest), Linear Regression