Mukammal Course - Roman Urdu Mein (12 Chapters)
Machine Learning (ML) Artificial Intelligence (AI) ki ek aisi shakh hai jis mein computers ko wazeh taur par (explicitly) program kiye baghair, data se seekhne ki salahiyat di jati hai. Yeh field 1959 mein Arthur Samuel ne introduce ki thi.
Machine Learning ko bunyadi taur par 3 hisson mein taqseem kiya jata hai:
Is mein hum computer ko data ke sath-sath uska sahi jawab (labels) bhi dete hain. Computer in labels ko dekh kar pattern seekhta hai.
Applications: Spam detection, Image recognition, Medical diagnosis, House price prediction.
Is mein data ko koi label nahi diya jata. Computer khud data mein chhupe huwe patterns aur groups (clusters) dhundhta hai.
Applications: Customer segmentation, Anomaly detection, Market research, Data compression.
Is mein ek "Agent" ko mahol (environment) mein rakha jata hai. Agar wo sahi kaam kare to usay Inam (Reward) milta hai, aur ghalat kare to Saza (Penalty). Wo trial-and-error se seekhta hai.
Applications: Robotics, Game playing (Chess, Go), Autonomous vehicles, Trading systems.
| Feature | Supervised | Unsupervised | Reinforcement |
|---|---|---|---|
| Data Type | Labeled | Unlabeled | Environment Feedback |
| Goal | Predict output | Find patterns | Maximize reward |
| Complexity | Medium | Medium | High |
Kisi bhi Machine Learning project ko mukammal karne ke liye ek khas tarteeb (workflow) follow ki jati hai:
Supervised Learning mein 2 main categories hoti hain:
Yeh algorithm data points ke darmiyan ek "best fit line" draw karta hai taakay future values predict ki ja sakein.
Yeh classification ke liye istemal hota hai. Yeh probability calculate karta hai ke koi data point kis category mein aata hai (0 ya 1).
Yeh algorithm data ko sawalon ki shakhl mein divide karta hai, bilkul darakht (tree) ki tarah.
SVM data points ko mukhtalif classes mein divide karne ke liye ek "hyperplane" (line/plane) dhundhta hai jo dono classes ke darmiyan maximum margin rakhe.
Yeh algorithm naye data point ko uske qareebi (nearest) neighbors ki bunyad par classify karta hai. "K" ka matlab hai kitne neighbors dekhne hain.
Unsupervised Learning mein labels nahi hote, algorithm khud patterns dhundhta hai.
Yeh algorithm data ko 'K' groups (clusters) mein taqseem karta hai. Har cluster ka ek center (centroid) hota hai.
Yeh algorithm data points ko ek darakht (tree) ki shakhl mein jorta hai. Do qisam ke hain:
PCA data ki dimensions (features) ko kam karta hai taakay data ko visualize aur analyze karna asaan ho jaye, lekin important information zaya na ho.
Yeh algorithm data ki density (ghat'ta) ki bunyad par clusters banata hai. Yeh arbitrary shapes ke clusters bhi identify kar sakta hai aur outliers ko detect kar sakta hai.
Neural Networks insani dimagh ke neurons ki naqal karte hain. Har neuron inputs leta hai, un par calculations karta hai, aur output deta hai.
Yeh functions decide karte hain ke neuron fire hoga ya nahi:
Model ki performance napne ke liye mukhtalif metrics istemal hoti hain:
Yeh matrix classification model ki performance dikhata hai:
K-Fold Cross-Validation mein data ko K parts mein divide kiya jata hai. Har baar ek part test ke liye aur baqi K-1 parts training ke liye istemal hote hain. Yeh process K baar repeat hota hai.
Model training mein do baray maslay aa sakte hain:
Jab model itna simple ho ke wo training data ke patterns bhi na seekh sake.
Wajuhaat:
Hal:
Jab model training data ko "yaad" kar le (noise samait) lekin naye data par kharab perform kare.
Wajuhaat:
Hal:
Feature Engineering ka matlab hai data ko aisi shakhl dena ke model us se behtar seekh sake. Yeh ML project ka sab se important hissa hai!
ML models sirf numbers samajhte hain, is liye text data ko numbers mein convert karna parta hai:
Different features ki ranges mukhtalif ho sakti hain (jaise age: 0-100, salary: 20000-200000). Inhe ek scale par lana zaroori hai:
Zaroori features ko chunna aur ghair-zaroori ko remove karna:
Naye features banana existing features se:
Chaliye kuch practical Python code examples dekhte hain using popular libraries:
Machine Learning aaj kal har field mein istemal ho raha hai. Kuch mashhoor applications:
Ab waqt hai ke aap apni samajh ko azmayen! Neeche 10 sawalon ka quiz hai:
1. Machine Learning ka bunyadi maqsad kya hai?
2. Agar data mein labels na hon, to konsa learning type istemal hoga?
3. K-Means kis qisam ka algorithm hai?
4. Overfitting ka matlab kya hai?
5. Confusion Matrix mein "True Positive" ka matlab kya hai?
6. Neural Networks mein "Backpropagation" ka kya kaam hai?
7. Feature Scaling kyun zaroori hai?
8. CNN (Convolutional Neural Network) kis kaam ke liye behtar hai?
9. Cross-Validation ka faida kya hai?
10. Reinforcement Learning mein "Agent" kya karta hai?