AWS Certified AI Practitioner(31) - AWS AI Managed Services
AWS AI Managed ServicesWhy AWS AI Managed Services?AWS AI Managed Services provide pre-trained ML models designed for specific use cases, without requiring you to build or train models from scratch. Key Benefits: Responsiveness and Availability: Always accessible, deployed across multiple Availability Zones and AWS Regions. Redundancy and Reliability: Services remain available even if one AZ experiences downtime. Performance: Use of specialized CPUs and GPUs optimized for ML workloads โ cost ...
AWS Certified AI Practitioner(30) - Hyperparameter Tuning
Hyperparameter Tuning1. What is a Hyperparameter? Definition: Settings that define how the model is structured and how the learning algorithm works. Set before training begins (they are not learned from the data). Examples: Learning rate Batch size Number of epochs Regularization ๐ Exam Tip: Hyperparameters are not learned during training. They are chosen before training and tuned for best performance. 2. Why Hyperparameter Tuning Matters Goal: Find the best combination of hyperparameter...
(ํ๊ตญ์ด) AWS Certified AI Practitioner (30) - ํ์ดํผํ๋ผ๋ฏธํฐ ํ๋
ํ์ดํผํ๋ผ๋ฏธํฐ ํ๋ (Hyperparameter Tuning)1. ํ์ดํผํ๋ผ๋ฏธํฐ๋? ์ ์: ๋ชจ๋ธ ๊ตฌ์กฐ์ ํ์ต ๋ฐฉ์์ ๊ฒฐ์ ํ๋ ์ค์ ๊ฐ ํน์ง: ํ์ต์ด ์์๋๊ธฐ ์ ์ ์ ํด์ง ๋ฐ์ดํฐ ์์ฒด๊ฐ ์๋๋ผ, ํ์ต ์๊ณ ๋ฆฌ์ฆ์ ๋์ ๋ฐฉ์์ ์ํฅ์ ์ค ๋ํ ์์: ํ์ต๋ฅ (Learning rate) ๋ฐฐ์น ํฌ๊ธฐ(Batch size) ์ํฌํฌ ์(Number of epochs) ์ ๊ทํ(Regularization) ๐ ์ํ ํฌ์ธํธ:ํ์ดํผํ๋ผ๋ฏธํฐ๋ ๋ชจ๋ธ ํ์ต ๊ณผ์ ์์ ์๋์ผ๋ก ํ์ต๋๋ ๊ฐ์ด ์๋๋ผ, ์ฌ์ ์ ์ค์ ํ๋ ๊ฐ์ด๋ค. 2. ํ์ดํผํ๋ผ๋ฏธํฐ ํ๋(Hyperparameter Tuning) ๋ชฉ์ : ์ต์ ์ ํ์ดํผํ๋ผ๋ฏธํฐ ๊ฐ์ ์ฐพ์ ๋ชจ๋ธ ์ฑ๋ฅ์ ๊ทน๋ํ\ ํจ๊ณผ: ์ ํ๋ ํฅ์ ๊ณผ์ ํฉ(Overfitting) ๊ฐ์ ์ผ๋ฐํ ์ฑ๋ฅ ๊ฐํ ๋ฐฉ๋ฒ: Grid Search: ๊ฐ๋ฅํ ๋ชจ๋ ์กฐํฉ ํ์ Random Search: ์์์ ์กฐํฉ์ ํ์ ์๋ํ ์๋น์ค: Amazon SageMaker Automatic Model ...
(ํ๊ตญ์ด) AWS Certified AI Practitioner (29) - ๋จธ์ ๋ฌ๋ ํ๋ก์ ํธ ๋จ๊ณ
๋จธ์ ๋ฌ๋ ํ๋ก์ ํธ ๋จ๊ณ (Phases of Machine Learning Project)1. ๋น์ฆ๋์ค ๋ชฉํ ์ ์ ๋ชฉํ: ์ด๋ค ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ง ๋ช
ํํ ์ ์ ์ดํด๊ด๊ณ์(Stakeholders): ํ๋ก์ ํธ์ ๊ฐ์น, ์์ฐ, ์ฑ๊ณต ๊ธฐ์ค์ ์ค์ KPI(ํต์ฌ ์ฑ๊ณผ ์งํ): ๋ฐ๋์ ์ ์ํด์ผ ํจ โ ๋ชจ๋ธ์ด ์ค์ ๋ก ๋น์ฆ๋์ค ๋ชฉํ์ ๊ธฐ์ฌํ๋์ง ํ๋จํ๋ ๊ธฐ์ค ๐ ์ํ ํฌ์ธํธ:๋จธ์ ๋ฌ๋ ํ๋ก์ ํธ์ ์ฒซ ๋จ๊ณ๋ ํญ์ ๋น์ฆ๋์ค ๋ฌธ์ ๋ฅผ ์ ์ํ๋ ๊ฒ. KPI ์ค์ ์ AWS ์ํ์์ ์์ฃผ ๊ฐ์กฐ๋จ. 2. ๋ฌธ์ ์ ์์ ML ๋ฌธ์ ๋ก ์ ํ (ML Problem Framing) ๋น์ฆ๋์ค ๋ฌธ์ โ ML ๋ฌธ์ ๋ก ๋ณํ ๋จธ์ ๋ฌ๋์ด ์ ๋ง ํ์ํ์ง, ๋ค๋ฅธ ํด๊ฒฐ์ฑ
(์: ๋จ์ ๊ท์น ๊ธฐ๋ฐ)์ด ๋ ๋์์ง ํ๋จ ๋ฐ์ดํฐ ๊ณผํ์, ๋ฐ์ดํฐ ์์ง๋์ด, ML ์ํคํ
ํธ, ๋๋ฉ์ธ ์ ๋ฌธ๊ฐ๊ฐ ํจ๊ป ํ์
3. ๋ฐ์ดํฐ ์ฒ๋ฆฌ (Data Processing) ๋ฐ์ดํฐ ์์ง ๋ฐ ํตํฉ: ์ค์์์ ์ ๊ทผ ๊ฐ๋ฅํ๋๋ก ์ ๋ฆฌ ์ ์ฒ๋ฆฌ ๋ฐ ์๊ฐํ: ๋ฐ์ดํฐ ํ์ง ํ์ธ, ์ด์...
AWS Certified AI Practitioner(29) - Phases of a Machine Learning Project
Phases of a Machine Learning Project1. Define Business Goals Every ML project starts with defining the business objective. Stakeholders must agree on: The value the project will provide The budget The success criteria KPI (Key Performance Indicators) are critical to measure whetherthe ML model actually achieves business goals. ๐ Exam Tip: AWS often asks about the importance of KPIs in framing an ML project. The first step is always business problem definition, not jumping into training a ...
(ํ๊ตญ์ด) AWS Certified AI Practitioner (28) - ๋จธ์ ๋ฌ๋ ์ถ๋ก
๋จธ์ ๋ฌ๋ โ ์ถ๋ก (Inferencing)1. ์ถ๋ก ์ด๋? ์ถ๋ก (Inferencing): ์ด๋ฏธ ํ์ต๋ ๋ชจ๋ธ์ด ์๋ก์ด ๋ฐ์ดํฐ์ ๋ํด์์ธก์ ๋ด๋ฆฌ๋ ๊ณผ์ \ **ํ์ต(Training)**์ ๋ชจ๋ธ์ด ํจํด์ ๋ฐฐ์ฐ๋ ๊ณผ์ ์ด๊ณ ,**์ถ๋ก (Inferencing)**์ ํ์ต๋ ์ง์์ ํ์ฉํ๋ ๋จ๊ณ 2. ์ถ๋ก ์ ๋ ๊ฐ์ง ๋ฐฉ์(1) ์ค์๊ฐ ์ถ๋ก (Real-Time Inference) ๋ฐ์ดํฐ๊ฐ ๋ค์ด์ค๋ ์ฆ์ ์์ธก์ ๋ด๋ ค์ผ ํ๋ ๊ฒฝ์ฐ ํน์ง: ๋น ๋ฅธ ์๋๊ฐ ์ค์ (์ ํ๋๋ณด๋ค๋ ์๋ ์ฐ์ ) ๊ฒฐ๊ณผ๋ฅผ ์ฆ๊ฐ์ ์ผ๋ก ์ ๊ณตํด์ผ ํจ ์์: ์ฑ๋ด, ์์ฑ ๋น์(Alexa, Siri), ์จ๋ผ์ธ ์ถ์ฒ ์์คํ
๐ AWS ์๊ฒฉ์ฆ์์ ์์ฃผ ๋์ค๋ ํฌ์ธํธ:์ค์๊ฐ ์ถ๋ก ์ ์ง์ฐ(latency) ์ต์ํ๊ฐ ํต์ฌ. ๋ชจ๋ธ ์ ํ๋๊ฐ ์กฐ๊ธ๋ฎ๋๋ผ๋ ์ฆ๊ฐ์ ์ธ ์๋ต์ด ํ์ํ ๊ฒฝ์ฐ ์ฌ์ฉ๋จ. (2) ๋ฐฐ์น ์ถ๋ก (Batch Inference) ๋๋์ ๋ฐ์ดํฐ๋ฅผ ๋ชจ์์ ํ ๋ฒ์ ์ฒ๋ฆฌํ๋ ๋ฐฉ์ ํน์ง: ์๋๋ณด๋ค๋ ์ ํ์ฑ์ด ์ค์ ๋ถ์์ฉ์ผ๋ก ์ฃผ๋ก ์ฌ์ฉ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ...
AWS Certified AI Practitioner(28) - Machine Learning Inferencing
Machine Learning โ Inferencing1. What is Inferencing? Inferencing is when a trained model makes predictions on new unseen data. Training = teaching the model. Inferencing = applying what the model has learned to makepredictions. 2. Two Types of Inferencing(1) Real-Time Inference Predictions are made instantly as new data arrives. Key Points: Speed is more important than perfect accuracy. Users expect immediate responses. Examples: Chatbots (customer service bots, Alexa, Siri) Fr...
AWS Certified AI Practitioner(27) - Model Evaluation - Classification & Regression
๐ Model Evaluation โ Classification & RegressionWhen building ML models, itโs not enough to just train themโyou alsoneed to evaluate how good they are. Different problems (classificationvs regression) use different metrics. Letโs break it down. ๐น Binary Classification Example โ Confusion MatrixA confusion matrix compares actual labels (truth) with the modelโspredictions. True Positive (TP): predicted positive, actually positive\ False Positive (FP): predicted positive, actually negati...
(ํ๊ตญ์ด) AWS Certified AI Practitioner (27) - ์ด์ง ๋ถ๋ฅ์ ํผ๋ ํ๋ ฌ (Confusion Matrix)
๐ Model Evaluation in Machine Learning๋จธ์ ๋ฌ๋ ๋ชจ๋ธ์ ๋ง๋ค์์ ๋, ์ฑ๋ฅ์ด ์ ๋์ค๋์ง๋ฅผ ํ์ธํ๋ ๊ณผ์ ์ด ํ์ํฉ๋๋ค.์ด๋ ๋ถ๋ฅ(Classification) ๋ชจ๋ธ๊ณผ ํ๊ท(Regression) ๋ชจ๋ธ์ ํ๊ฐ ๋ฐฉ์์ด ๋ค๋ฅด๋ฏ๋ก ๊ตฌ๋ถํด์ ์์๋์ด์ผ ํฉ๋๋ค. ๐น ์ด์ง ๋ถ๋ฅ (Binary Classification)์ ํผ๋ ํ๋ ฌ (Confusion Matrix)Confusion Matrix๋? ์ค์ ์ ๋ต(๋ผ๋ฒจ)๊ณผ ๋ชจ๋ธ ์์ธก๊ฐ์ ๋น๊ตํด์ ์ฑ๋ฅ์ ํ๊ฐํ๋ ๋๊ตฌ ๋ค ๊ฐ์ง ๊ฐ์ผ๋ก ๋๋ฉ๋๋ค: ๊ตฌ๋ถ ์์ธก Positive ์์ธก Negative ์ค์ Positive True Positive (TP) False Negative (FN) ์ค์ Negative False Positive (FP) True Negative (TN) ๐ ๋ชฉํ: TP์ TN์ ์ต๋ํํ๊ณ , FP์ FN์ ์ต์ํํ๋ ๊ฒ. ์ฃผ์ ํ๊ฐ ์งํ (Classification...
(ํ๊ตญ์ด) AWS Certified AI Practitioner (26) - ๋ชจ๋ธ ์ ํฉ๋์ ํธํฅ & ๋ถ์ฐ
๐ค ๋ชจ๋ธ ์ ํฉ๋(Model Fit)์ ํธํฅ(Bias) ยท ๋ถ์ฐ(Variance)1. ๋ชจ๋ธ ์ ํฉ๋(Model Fit)๋จธ์ ๋ฌ๋ ๋ชจ๋ธ์ด ์ ๋๋ก ๋์ํ์ง ์์ ๋๋ ๋ชจ๋ธ์ ์ ํฉ๋(Fit) ๋ฅผ ์ดํด๋ด์ผ ํฉ๋๋ค.๋ชจ๋ธ์ด ๋ฐ์ดํฐ๋ฅผ ์ผ๋ง๋ ์ ์ค๋ช
ํ๋์ง๊ฐ ํต์ฌ์
๋๋ค. ๊ณผ์ ํฉ(Overfitting) ํ๋ จ ๋ฐ์ดํฐ์์๋ ์ฑ๋ฅ์ด ๋งค์ฐ ์ข์ ์๋ก์ด ๋ฐ์ดํฐ(๊ฒ์ฆ/ํ
์คํธ ๋ฐ์ดํฐ)์์๋ ์ฑ๋ฅ์ด ๋์จ ์์ธ: ๋ชจ๋ธ์ด ๋ฐ์ดํฐ์ ๋
ธ์ด์ฆ๊น์ง ํ์ตํด์ ์ผ๋ฐํ๊ฐ ์ ๋จ ๐ ์์: ํ๋ จ ๋ฐ์ดํฐ ์ ํ๋ํ๋์ ๋ง๊ฒ ์ ์ ๊ตฌ๋ถ๋ ค ๋ง๋ ๋ณต์กํ ๊ณก์ ๊ณผ์์ ํฉ(Underfitting) ํ๋ จ ๋ฐ์ดํฐ์์๋ ์ฑ๋ฅ์ด ๋์จ ์์ธ: ๋ชจ๋ธ์ด ๋๋ฌด ๋จ์ํ๊ฑฐ๋, ํน์ง(Feature)์ด ๋ถ์กฑํจ ๐ ์์: ๋ณต์กํ ๊ณก์ ๋ฐ์ดํฐ์ ๋จ์ ์ง์ ์ ์ต์ง๋ก ์ ์ฉ ๊ท ํ(Balanced) ๊ณผ์ ํฉ๋, ๊ณผ์์ ํฉ๋ ์๋ ์ํ ์ด๋ ์ ๋ ์ค์ฐจ๋ ์์ง๋ง, ๋ฐ์ดํฐ์ ์ ์ฒด์ ์ธ ํจํด์ ์ ๋ฐ๋ฆ ๐ ๊ฐ์ฅ ์ด์์ ...