software engineering/ํŒŒ์ด์ฌ ๋จธ์‹ ๋Ÿฌ๋‹

[Machine Learning] SVM (Support Vector Machines)

jjingle 2024. 1. 12. 15:56

Binary  Classification(two-class classfication)

  • ์ง๊ด€์ ์ธ ๋ถ„๋ฅ˜ ๋ฐฉ๋ฒ•
    • Feature space์—์„œ ๊ณต๊ฐ„์„ ๋‘˜๋กœ ๋‚˜๋ˆ„๋Š”(separate) ํ‰๋ฉด(plane)์„ ์ฐพ์Œ
  • ๋งŒ์•ฝ ๊ทธ๋Ÿฌํ•œ ํ‰๋ฉด์„ ์ฐพ์„ ์ˆ˜ ์—†๋‹ค๋ฉด
    • ๊ณต๊ฐ„์„ ๊ตฌ๋ถ„(seperate)ํ•œ๋‹ค๋Š” ๊ฐœ๋…์„ ๋Š์Šจํ•˜๊ฒŒ ์ ์šฉ
    • ๊ตฌ๋ถ„์ด ๊ฐ€๋Šฅํ•˜๋„๋ก feature space๋ฅผ ํ™•์žฅ (์ถ”๊ฐ€์ ์ธ feature ์ƒ์„ฑ)

 

Maximal  Margin  Classfier

  • ๋ชจ๋“  separating hyperplane ๊ฐ€์šด๋ฐ ๋‘ class๊ฐ„์˜ margin์„ ๊ฐ€์žฅ ํฌ๊ฒŒ ํ•˜๋Š” separating hyperplane์ด ์กด์žฌํ•จ
  • ์ด hyperplane์„ ์ด์šฉํ•˜๋Š” classfier๋ฅผ Maximal Margin Classfier๋ผ๊ณ  ํ•จ

 

Support  Vector  Classfier

  • Soft margin
    • ๋ชจ๋“  ๋ฐ์ดํ„ฐ๋ฅผ ์™„๋ฒฝํžˆ ๊ตฌ๋ถ„ํ•ด๋‚ด๋Š” margin์ด ์•„๋‹Œ ์ผ๋ถ€ training data์— ๋Œ€ํ•ด์„œ๋Š” ์ž˜๋ชป๋œ ํด๋ž˜์Šค ๊ตฌ๋ถ„์„ ํ—ˆ์šฉํ•˜๋Š” (soft)margin
  • Support Vector Classfier(Soft margin classifier)
    • Soft margin์„ ์ด์šฉํ•˜์—ฌ ์ผ๋ถ€ training data์˜ ์ž˜๋ชป๋œ ๊ตฌ๋ถ„์„ ํ—ˆ์šฉํ•˜๋Š” classifier

 

 

Support  Vector  Machines

  • Kernel
    • Inner product๋ฅผ ์ผ๋ฐ˜ํ™”๋œ ํ˜•์‹์œผ๋กœ ๋Œ€์ฒด
    • kernel์ด๋ผ๊ณ  ๋ถ€๋ฅด๋Š” ๋‘ ๋ฒกํ„ฐ ๊ฐ„์˜ ์œ ์‚ฌ์„ฑ(similarity)๋ฅผ ์ •๋Ÿ‰ํ™”
  • Support Vector Machines
    • Non-linear kernel์„ ์ด์šฉํ•˜๋Š” Support Vector Classifier