stem/AI/Neural Networks/Deep Learning.md

49 lines
1.9 KiB
Markdown
Raw Normal View History

![deep-digit-classification](../../img/deep-digit-classification.png)
vault backup: 2023-06-08 17:52:08 Affected files: .obsidian/graph.json .obsidian/workspace-mobile.json .obsidian/workspace.json Food/Meal Plan.md Lab/Linux/Alpine.md Lab/Linux/KDE.md Lab/Scratch Domain.md Lab/Windows/Active Directory.md Languages/Spanish/README.md Languages/Spanish/Spanish.md Money/Accounts.md Money/Monthly/23-04.md Money/Monthly/23-05.md Money/Monthly/23-06.md Projects/Mixonomer.md Projects/NoteCrawler.md Projects/Projects.md Projects/README.md Projects/Selector.md Projects/To Do App.md Projects/img/selector-arch.png STEM/AI/Classification/Supervised/SVM.md STEM/AI/Neural Networks/CNN/FCN/Super-Resolution.md STEM/AI/Neural Networks/CNN/GAN/GAN.md STEM/AI/Neural Networks/CNN/GAN/cGAN.md STEM/AI/Neural Networks/CNN/Interpretation.md STEM/AI/Neural Networks/Deep Learning.md STEM/AI/Neural Networks/MLP/MLP.md STEM/AI/Neural Networks/Properties+Capabilities.md STEM/AI/Neural Networks/RNN/Representation Learning.md STEM/AI/Pattern Matching/Markov/Markov.md STEM/AI/Searching/Informed.md STEM/AI/Searching/README.md STEM/AI/Searching/Searching.md STEM/AI/Searching/Uninformed.md STEM/CS/Languages/Javascript.md STEM/CS/Languages/Python.md STEM/CS/Languages/dotNet.md STEM/CS/Resources.md STEM/IOT/Cyber-Physical Systems.md STEM/IOT/Networking/Networking.md STEM/IOT/Networking/README.md STEM/IOT/Software Services.md STEM/img/cyberphysical-social-data.png STEM/img/cyberphysical-system-types.png STEM/img/cyberphysical-systems.png STEM/img/depth-first-cons.png STEM/img/depth-first.png STEM/img/iot-mesh-network.png STEM/img/iot-network-radar.png STEM/img/iot-network-types 1.png STEM/img/iot-network-types.png STEM/img/markov-start-end-matrix.png STEM/img/markov-start-end-probs.png STEM/img/markov-start-end.png STEM/img/markov-state-duration.png STEM/img/markov-state.png STEM/img/markov-weather.png STEM/img/search-bidirectional.png STEM/img/search-breadth-first.png STEM/img/search-lim-goal.png STEM/img/search-lim1.png STEM/img/search-lim2.png STEM/img/search-lim3-2.png STEM/img/search-lim3.png STEM/img/search-lim4.png STEM/img/searching-graph-tree.png STEM/img/searching-graph.png Work/Freelancing.md
2023-06-08 17:52:09 +01:00
OCR [Classification](../Classification/Classification.md)
# 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
- [Dense](MLP/MLP.md) = [fully connected](MLP/MLP.md)
- 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)