AI ML DL Notes
AI ML DL Notes
- Supervised Learning: The model is trained on labeled data (input-output pairs). It learns to
map inputs to the correct output.
Example: Predicting house prices. Algorithms include Linear Regression, Decision Trees,
SVM.
- Unsupervised Learning: The model is given unlabeled data and it finds patterns or
groupings on its own.
Example: Customer segmentation. Algorithms include K-Means, PCA.
- Reinforcement Learning: The model learns by interacting with an environment and
receiving rewards or penalties.
Example: Game-playing AI. Used in robotics and strategy games.
Applications:
- Healthcare (disease diagnosis)
- Finance (fraud detection)
- Marketing (targeted advertising)
- Transportation (traffic prediction)
- Natural Language Processing (chatbots)
Challenges:
- Data quality
- Overfitting
- Bias
- Interpretability
2. Deep Learning (DL)
Deep Learning is a specialized subfield of Machine Learning where models learn from large
volumes of data using neural networks with multiple layers. It is inspired by the structure
and function of the human brain.
Core Elements:
- Artificial Neural Networks (ANNs): Input layer, hidden layers, and output layer.
Working Process:
1. Forward Propagation
2. Loss Calculation
3. Backpropagation
4. Iterative Training
Applications:
- Image and speech recognition
- Natural Language Processing
- Self-driving cars
- Medical imaging
Challenges:
- Requires huge datasets
- High computational cost
- Hard to interpret (black-box models)
Structure:
- Input Layer → Hidden Layer(s) → Output Layer
Working:
1. Input is passed through layers (Forward Propagation).
2. Error is calculated (Loss Function).
3. Weights are updated through Backpropagation.
Activation Functions:
- Sigmoid: Binary classification
- ReLU: Fast and widely used
- Tanh: Scales between -1 and 1
Applications:
- Handwriting recognition
- Fraud detection
- Stock prediction
- Medical diagnosis
Advantages:
- Can model complex relationships
- Works for classification and regression tasks
Limitations:
- Computationally intensive
- Risk of overfitting
- Not ideal for image or sequence data (better to use CNN/RNN)