flowchart TD
A[Input Data] --> B[Input Layer]
B --> C[Hidden Layers]
C --> D{Activation Function}
D --> E[Weighted Sum]
E --> F[Forward Propagation]
F --> G[Output Layer]
G --> H[Prediction/Result]
H --> I{Compare with Actual}
I --> J[Calculate Loss/Error]
J --> K[Backpropagation]
K --> L[Update Weights & Biases]
L --> M{Training Complete?}
M -->|No| B
M -->|Yes| N[Trained Model]
style A fill:#4a90e2,color:#fff
style H fill:#2d8a8a,color:#fff
style J fill:#e74c3c,color:#fff
style N fill:#27ae60,color:#fff
Neural Network Components
Input Layer: Receives raw data (features)
Hidden Layers: Process and transform data through weighted connections
Output Layer: Produces final prediction or classification
Weights: Determine strength of connections between neurons
Forward Propagation: Data flows from input to output
Backpropagation: Error flows backward to update weights
Loss Function: Measures prediction error
Types of Neural Networks
graph TD
A[Neural Networks] --> B[Feedforward NN]
A --> C[Convolutional NN]
A --> D[Recurrent NN]
A --> E[Transformer]
B --> B1[Simple Classification]
C --> C1[Image Recognition]
C --> C2[Computer Vision]
D --> D1[Time Series]
D --> D2[Natural Language]
E --> E1[LLMs]
E --> E2[Translation]
style A fill:#333,color:#fff
style B fill:#4a90e2,color:#fff
style C fill:#7b68ee,color:#fff
style D fill:#e74c3c,color:#fff
style E fill:#27ae60,color:#fff