๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ“– Theory/AI & ML

[AI/ML] Precision์ด ์ค‘์š”ํ•œ ๊ฒฝ์šฐ์™€ Recall์ด ์ค‘์š”ํ•œ ๊ฒฝ์šฐ

by ๋ญ…์ฆค 2023. 12. 8.
๋ฐ˜์‘ํ˜•
 

Precision, Recall, AP (Average Precision) ๊ฐ„๋‹จ ์„ค๋ช… | ๊ฐ์ฒด ๊ฒ€์ถœ ์„ฑ๋Šฅ ์ง€ํ‘œ

Object Detection(๊ฐ์ฒด ๊ฒ€์ถœ) ๋ชจ๋ธ์˜ ์„ฑ๋Šฅ์„ ์ธก์ •ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” Precision(์ •๋ฐ€๋„), Recall(์žฌํ˜„์œจ), ๊ทธ๋ฆฌ๊ณ  Average Precision(AP)๋ฅผ ๊ผญ ์•Œ์•„์•ผ ํ•œ๋‹ค. ML๋ฅผ ๊ณต๋ถ€ํ•˜๋‹ค ๋ณด๋ฉด ํ•œ ๋ฒˆ ์ด์ƒ์€ ๊ณต๋ถ€ํ•˜๋Š” ๊ฐœ๋…์ธ๋ฐ, ๋Š˜ ํ—ท

mvje.tistory.com

 

์ด์ „ ํฌ์ŠคํŒ…์—์„œ Precision, Recall, AP (Average Precision) ์ด๋ผ๋Š” ์„ฑ๋Šฅ ์ง€ํ‘œ๋“ค์— ๋Œ€ํ•ด ์‚ดํŽด๋ดค๋‹ค. ๊ฐ์ฒด ๊ฒ€์ถœ์—์„œ Precision์ด ๋‚ฎ๋‹ค๋Š” ๊ฒƒ์€ ์˜ค๊ฒ€์ถœ์ด ๋งŽ๋‹ค๋Š” ์˜๋ฏธ์ด๊ณ , Recall์ด ๋‚ฎ๋‹ค๋Š” ๊ฒƒ์€ ๋ฏธ๊ฒ€์ถœ์ด ๋งŽ๋‹ค๋Š” ์˜๋ฏธ์ด๋‹ค.

 

๋Œ€๋ถ€๋ถ„์˜ ๊ฒฝ์šฐ์—๋Š” precision๊ณผ recall์ด ๋ชจ๋‘ ๋†’์€ ๊ฒŒ ์ข‹์ง€๋งŒ, ์ด ๋‘˜์€ ๋ฐ˜๋น„๋ก€ ๊ด€๊ณ„์ด๊ธฐ ๋•Œ๋ฌธ์— ์ƒํ™ฉ์— ๋”ฐ๋ผ ๋” ์ค‘์š”ํ•œ ์ง€ํ‘œ์— ์ดˆ์ ์„ ๋งž์ถœ ํ•„์š”๊ฐ€ ์žˆ๋‹ค.

 

๊ทธ๋ ‡๋‹ค๋ฉด Precision์ด ์ค‘์š”ํ•œ ๊ฒฝ์šฐ์™€ Recall์ด ์ค‘์š”ํ•œ ๊ฒฝ์šฐ๋Š” ์–ด๋–ค ๊ฒฝ์šฐ์ผ๊นŒ?

 

 

Precision์ด ์ค‘์š”ํ•œ ๊ฒฝ์šฐ (Precision์ด ๋‚ฎ์œผ๋ฉด ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ)

  • ์˜ค๊ฒ€์ถœ์ด ์ ์–ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ
  • ์žก์ดˆ ์ œ๊ฑฐ ๋กœ๋ด‡ : ์˜ค๊ฒ€์ถœ ์‹œ ์žก์ดˆ๊ฐ€ ์•„๋‹Œ ์ž‘๋ฌผ์„ ๋ฝ‘๊ธฐ ๋•Œ๋ฌธ
  • ์ŠคํŒธ ๋ฉ”์ผ ํ•„ํ„ฐ๋ง : ์ค‘์š”ํ•œ ๋ฉ”์ผ์„ ์˜คํŒ๋‹จ์œผ๋กœ ์ŠคํŒธ ๋ฉ”์ผ๋กœ ๋ถ„๋ฅ˜ํ•˜๋Š” ๊ฒฝ์šฐ ํฌ๋ฆฌํ‹ฐ์ปฌํ•œ ์ด์Šˆ์ด๊ธฐ ๋•Œ๋ฌธ
  • ์˜ค๊ฒ€์ถœ/์˜คํŒ๋‹จ ์‹œ ๋ฆฌ์†Œ์Šค ์‚ฌ์šฉ๋Ÿ‰์ด ๋” ๋งŽ์ด ๋“œ๋Š” ๊ฒฝ์šฐ

 

 

Recall์ด ์ค‘์š”ํ•œ ๊ฒฝ์šฐ (Recall์ด ๋‚ฎ์œผ๋ฉด ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ)

  • ๋ฏธ๊ฒ€์ถœ์ด ์ ์–ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ
  • ์˜๋ฃŒ ์ง„๋‹จ (์•” ์ง„๋‹จ) : ์•”์ธ๋ฐ ์•”์ด ์•„๋‹ˆ๋ผ๊ณ  ํŒ๋‹จํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๊ฐ€์žฅ ํฌ๋ฆฌํ‹ฐ์ปฌ ํ•˜๊ธฐ ๋•Œ๋ฌธ์— recall์ด ๋†’์•„์•ผ ํ•จ. ์•”์ด ์•„๋‹Œ๋ฐ ์•”์ด๋ผ๊ณ  ํ•˜๋Š”๊ฒฝ์šฐ๋Š” ๊ทธ์ € ์ •๋ฐ€ ๊ฒ€์‚ฌ๋ฅผ ํ•ด์•ผ ํ•˜๋Š” ๊ท€์ฐฎ์Œ์ด ๋ฐœ์ƒํ•˜๋Š” ์ •๋„์ด์ง€๋งŒ, ์•”์ธ๋ฐ ์•”์ด ์•„๋‹ˆ๋ผ๊ณ  ํŒ๋‹จํ•˜๋Š” ๊ฒฝ์šฐ๋Š” ์œ„ํ—˜ํ•˜๊ธฐ ๋•Œ๋ฌธ
  • ์ž์œจ ์ฃผํ–‰ ์‚ฌ๋žŒ ๊ฒ€์ถœ : ์ž์œจ ์ฃผํ–‰ ์ฐจ๋Ÿ‰์˜ ๊ฒฝ์šฐ ์‚ฌ๋žŒ์„ ๋ฏธ๊ฒ€์ถœํ•˜๋Š” ๊ฒฝ์šฐ ์‚ฌ๊ณ ๋กœ ์ด์–ด์งˆ ์ˆ˜ ์žˆ์Œ
  • ๋ฏธ๊ฒ€์ถœ ์‹œ ๋ฆฌ์†Œ์Šค ์‚ฌ์šฉ๋Ÿ‰์ด ๋” ๋งŽ์ด ๋“œ๋Š” ๊ฒฝ์šฐ
๋ฐ˜์‘ํ˜•