stem/AI/Neural Networks/Deep Learning.md
andy b30da1d29c vault backup: 2023-06-01 08:11:37
Affected files:
.obsidian/graph.json
.obsidian/workspace.json
Money/Assets/Derivative.md
STEM/AI/Neural Networks/CNN/Examples.md
STEM/AI/Neural Networks/Deep Learning.md
STEM/AI/Neural Networks/MLP/Decision Boundary.md
STEM/CS/Languages/dotNet.md
STEM/Semiconductors/Equations.md
Tattoo/Engineering.md
2023-06-01 08:11:37 +01:00

47 lines
1.9 KiB
Markdown

![deep-digit-classification](../../img/deep-digit-classification.png)
# Loss Function
Objective Function
- [Back-Propagation](MLP/Back-Propagation.md)
- Difference between predicted and target outputs
![deep-loss-function](../../img/deep-loss-function.png)
- Test accuracy worse than train accuracy = overfitting
- [[MLP|Dense]] = [[MLP|fully connected]]
- Automates feature engineering
![ml-dl](../../img/ml-dl.png)
These are the two essential characteristics of how deep learning learns from data: the incremental, layer-by-layer way in which increasingly complex representations are developed, and the fact that these intermediate incremental representations are learned jointly, each layer being updated to follow both the representational needs of the layer above and the needs of the layer below. Together, these two properties have made deep learning vastly more successful than previous approaches to machine learning.
# Steps
Structure defining
Compilation
- Loss function
- Metric of difference between output and target
- Optimiser
- How network will update
- Metrics to monitor
- Testing and training
Data preprocess
- Reshape input frame into linear array
- Categorically encode labels
Fit
Predict
Evaluate
# Data Structure
- [Tensor](../../Maths/Tensor.md) flow = channels last
- (samples, height, width, channels)
- Vector data
- 2D [tensors](../../Maths/Tensor.md) of shape (samples, features)
- Time series data or sequence data
- 3D [tensors](../../Maths/Tensor.md) of shape (samples, timesteps, features)
- Images
- 4D [tensors](../../Maths/Tensor.md) of shape (samples, height, width, channels) or (samples, channels, height, Width)
- Video
- 5D [tensors](../../Maths/Tensor.md) of shape (samples, frames, height, width, channels) or (samples, frames, channels , height, width)
![photo-tensor](../../img/photo-tensor.png)
![matrix-dot-product](../../img/matrix-dot-product.png)