--- id: P-REINFORCE-AUTO-DCAL-001 category: "10_Wiki/๐Ÿ’ก Topics/AI" confidence_score: 0.92 tags: [auto-reinforced, data-cleaning, data-preprocessing, algorithms, outliers, duplicate-detection] last_reinforced: 2026-04-20 --- # [[Data Cleaning Algorithms|Data Cleaning Algorithms]] ## ๐Ÿ“Œ ํ•œ ์ค„ ํ†ต์ฐฐ (The Karpathy Summary) > "์ง€์‹์˜ ํ•„ํ„ฐ๋ง: 'Garbage In, Garbage Out'์˜ ์ €์ฃผ๋ฅผ ๋ง‰๊ธฐ ์œ„ํ•ด, ๋ฐ์ดํ„ฐ ์†์˜ ๋…ธ์ด์ฆˆ, ์ค‘๋ณต, ์˜ค๋ฅ˜๋ฅผ ์ž๋™์œผ๋กœ ์‹๋ณ„ํ•˜๊ณ  ๊ต์ •ํ•˜์—ฌ AI๊ฐ€ ์˜ค์ง '์ •์ˆ˜(Essence)'๋งŒ์„ ๋ฐฐ์šธ ์ˆ˜ ์žˆ๋„๋ก ๋‹ฆ๊ณ  ์กฐ์ด๋Š” ์ง€์  ์„ธ์ฒ™ ๊ณต์ •." ## ๐Ÿ“– ๊ตฌ์กฐํ™”๋œ ์ง€์‹ (Synthesized Content) ๋ฐ์ดํ„ฐ ์ •์ œ ์•Œ๊ณ ๋ฆฌ์ฆ˜(Data Cleaning Algorithms)์€ ๋ฐ์ดํ„ฐ์…‹์˜ ํ’ˆ์งˆ์„ ๋†’์ด๊ธฐ ์œ„ํ•ด ์˜ค๋ฅ˜๋ฅผ ์ˆ˜์ •ํ•˜๊ณ  ์ผ๊ด€์„ฑ์„ ํ™•๋ณดํ•˜๋Š” ๊ธฐ๋ฒ•๋“ค์ž…๋‹ˆ๋‹ค. 1. **์ฃผ์š” ํƒœ์Šคํฌ ๋ฐ ์•Œ๊ณ ๋ฆฌ์ฆ˜**: * **Missing Value Imputation**: ํ‰๊ท , ์ตœ๋นˆ๊ฐ’ ํ˜น์€ KNN/ํšŒ๊ท€ ๋ชจ๋ธ์„ ์ด์šฉํ•ด ๋น„์–ด์žˆ๋Š” ๊ฐ’ ์ฑ„์šฐ๊ธฐ. * **Outlier Detection**: Z-Score, Isolation Forest ๋“ฑ์„ ์ด์šฉํ•ด ์ •์ƒ ๋ฒ”์œ„๋ฅผ ํฌ๊ฒŒ ๋ฒ—์–ด๋‚œ ์ด์ƒ์น˜ ์ œ๊ฑฐ. (Anomaly-Detection๊ณผ ์—ฐ๊ฒฐ) * **Deduplication (์ค‘๋ณต ์ œ๊ฑฐ)**: ํ•ด์‹œ ๋งค์นญ์ด๋‚˜ ํŽธ์ง‘ ๊ฑฐ๋ฆฌ(Levenshtein Distance)๋ฅผ ์ด์šฉํ•ด ๊ฒน์น˜๋Š” ๋ฐ์ดํ„ฐ ์ œ๊ฑฐ. * **Standardization**: ๋‹จ์œ„๋‚˜ ํ˜•์‹์„ ํ†ต์ผ (์˜ˆ: ๋‚ ์งœ ํฌ๋งท ํ†ต์ผ). 2. **์™œ ์ค‘์š”ํ•œ๊ฐ€?**: * ์ „์ฒด AI ํ”„๋กœ์ ํŠธ ์‹œ๊ฐ„์˜ 80%๋ฅผ ์ฐจ์ง€ํ•˜๋ฉฐ, ๋ชจ๋ธ์˜ ์„ฑ๋Šฅ ์ƒํ•œ์„ ์„ ๊ฒฐ์ •์ง“๋Š” ๊ฐ€์žฅ ์‹ค๋ฌด์ ์ธ ์˜์—ญ์ž„. ## โš ๏ธ ๋ชจ์ˆœ ๋ฐ ์—…๋ฐ์ดํŠธ (Contradictions & RL Update) - **๊ณผ๊ฑฐ ๋ฐ์ดํ„ฐ์™€์˜ ์ถฉ๋Œ**: ๊ณผ๊ฑฐ์—๋Š” ์‚ฌ๋žŒ์ด ์—‘์…€๋กœ '๋ˆˆ๋Œ€์ค‘ ์ •์ œ'๋ฅผ ํ•˜๋Š” ์ •์ฑ…์ด์—ˆ์œผ๋‚˜, ํ˜„๋Œ€ ์ •์ฑ…์€ ์ˆ˜์‹ญ์–ต ๊ฐœ์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์ง์ ‘ ์ฒ˜๋ฆฌํ•˜๋Š” 'ํ™•๋ฅ ์  ๋ฐ์ดํ„ฐ ์ •์ œ ์ •์ฑ…'๊ณผ 'AI๋ฅผ ์ด์šฉํ•œ AI ๋ฐ์ดํ„ฐ ์ •์ œ ์ •์ฑ…'์œผ๋กœ ์ž๋™ํ™”๋จ(RL Update). - **์ •์ฑ… ๋ณ€ํ™”(RL Update)**: ๊ฑฐ๋Œ€ ์–ธ์–ด ๋ชจ๋ธ ํ•™์Šต ์‹œ, ์ €ํ’ˆ์งˆ ์›น ํ…์ŠคํŠธ๋ฅผ ๊ฑธ๋Ÿฌ๋‚ด๊ธฐ ์œ„ํ•ด '์ง€๋Šฅํ˜• ๋ถ„๋ฅ˜๊ธฐ(Classifier)'๋ฅผ ํ†ตํ•œ ๊ณ ํ’ˆ์งˆ ๋ฐ์ดํ„ฐ ์„ ๋ณ„ ์ •์ฑ…์ด ๋ชจ๋ธ์˜ ์„ฑ๋Šฅ์„ ๊ฒฐ์ •ํ•˜๋Š” ํ•ต์‹ฌ ๊ธฐ๋ฐ€ ์ •์ฑ…์ด ๋จ. ## ๐Ÿ”— ์ง€์‹ ์—ฐ๊ฒฐ (Graph) - [[Anomaly-Detection|Anomaly-Detection]], [[Statistics & Data Analysis|Statistics & Data Analysis]], [[Optimization|Optimization]], [[Quality Gates|Quality Gates]], [[Signal in Noise|Signal in Noise]] - **Modern Tech/Tools**: Pandas, Scikit-learn, Great Expectations, DVC. ---