iTranslated by AI
Study Notes: A Comprehensive Guide to Machine Learning and Deep Learning Mechanisms and Technologies
Chapter 3. Machine Learning Processes and Core Technologies
20. Active Learning
Passive Learning
Uses all available data.
Active Learning
- Select ambiguous or informative data.
- Assign correct labels (labeling).
- Train the model.
21. Correlation and Causation
Guidelines for Causal Analysis
- Strength
- Consistency
- Specificity
- Temporality
- Biological gradient (Dose-response relationship)
- Plausibility
- Coherence
- Experiment
- Analogy
- Regression Discontinuity Design
Chapter 4. Machine Learning Algorithms
23. Regression Analysis
When the theoretical value (estimated value by regression) for the measured value (true value)
L1 Regularization: Lasso Regression
Linear regression that uses
L2 Regularization: Ridge Regression
Linear regression that uses
Elastic Net Regression
Regression that utilizes both L1 and L2 regularization.
24. Support Vector Machine (SVM)
Soft Margin SVM
Allows for data on the opposite side of the boundary.
Kernel Method
A method of linear separation after mapping to a high-dimensional feature space.
Kernel functions include:
- Gaussian (RBF) Kernel
- Polynomial Kernel
26. Ensemble Learning
Bagging
Using the bootstrap method, which randomly extracts data from a population with replacement, multiple sets of training data are redrawn from the entire dataset to create individual learning models from each set. Predictions are then made by combining the results of these multiple models.
Boosting
A model 1 is trained to make predictions, then a model 2 is created to relearn the parts that were incorrect, then a model 3 is created to relearn what was still incorrect, and so on. Predictions are made by combining the results of these sequential models (1, 2, ...).
- AdaBoost: Used for 2-class classification.
- SAMME (Stagewise Additive Modeling using a Multiclass Exponential loss function): For 3 or more classes.
27. Applications of Ensemble Learning
Random Forest
A variation of bagging that randomly redraws each feature.
Stacking
A method that uses prediction results as input for another prediction.
Gradient Boosting
A process of layering predictions of errors upon predictions of errors.
29. Bayesian Models
In this approach, potential candidates for the data generation structure (models) are designed in advance, the model is estimated using data, and predictions are made based on the estimated model.
30. Time Series Analysis and State Space Models
Basic Time Series Models
Autoregressive (AR)
Moving Average (MA)
Autoregressive Moving Average (ARMA)
Autoregressive Integrated Moving Average (ARIMA)
This model takes the difference of data to suppress the influence of trends such as rises or falls.
Seasonal Autoregressive Integrated Moving Average (SARIMA)
This model subtracts seasonal fluctuations (periodic variations) from the data.
k-Nearest Neighbors (k-NN) and k-Means
k-NN: A Supervised Learning Algorithm for Classification
Prepare training data (data with correct labels).
Measure the distance between the data to be classified and the training data.
Extract the
Choose the
k-Means: An Unsupervised Learning Algorithm for Clustering
Randomly divide the data into
Calculate the centroid for each cluster.
Reassign data to the cluster with the nearest centroid.
Calculate new centroids.
Repeat until convergence.
Chapter 5. Basic Knowledge of Deep Learning
Chapter 6. Deep Learning Processes and Core Technologies
37. Training Neural Networks with Backpropagation
Backpropagation
38. Optimization of Neural Networks
Optimization Algorithms
SGD (Stochastic Gradient Descent)
Momentum SGD
Adagrad
RMSprop
Adam
40. Transfer Learning
Domain Adaptation
Domain Confusion
One-shot Learning
Public Datasets and Pre-trained Models
- MNIST: Handwritten digits
- MS-COCO
- ImageNet
- Open Images Dataset
- VisualQA
- The Street View House Numbers (SVHN)
- CIFAR-10
- Fashion-MNIST: Clothing items
Chapter 7. Deep Learning Algorithms
42. Recurrent Neural Networks (RNN)
Long Short Term Memory (LSTM)
Gated Recurrent Unit (GRU)
Bidirectional RNN
Sequence to Sequence (Seq2Seq)
Attention
Input the intermediate states of the Encoder into the Decoder as well.
Transformer
- Has an Encoder-Decoder structure.
- Features an Attention mechanism.
- Does not use RNN.
ELMo (Embeddings from Language Models)
BERT (Bidirectional Encoder Representations from Transformers)
43. Reinforcement Learning and Deep Learning
The required number of samples increases in the order of model-based, value-based, and policy-based methods.
- Model-based
- Model is known
- AlphaZero
- Model is learned
- Model is known
- Model-free
- Value-based (Q-learning): For cases where action options are finite and small
- DQN
- Policy-based (Policy Optimization)
- Policy Gradient
- REINFORCE
- Policy Gradient
- Combination of Value-based and Policy-based
- Actor-Critic
- Value-based (Q-learning): For cases where action options are finite and small
Reference Links
-
Summary of Deep Reinforcement Learning Algorithms @shionhonda
-
The University of Tokyo Matsuo Lab Deep Reinforcement Learning Summer School
DQN (Deep Q-Network)
Train a neural network to substitute for the (state, action) -> action value mapping table.
Select actions according to the output action value.
Basically select the action with the maximum action value, but occasionally (with probability
Actor-Critic
A combination of policy-based Actor and value-based Critic.
- A2C (Advantage Actor-Critic): Synchronous parallel speed-up algorithm
- A3C (Asynchronous Advantage Actor-Critic): Asynchronous parallel speed-up algorithm
44. Autoencoder
Aims to output the same data as the input data through encoding and decoding.
The encoded data is considered to represent the essential information of that data.
This is called a latent variable and can be utilized for dimensionality reduction.
CAE (Convolutional Autoencoder)
DAE (Denoising Autoencoder)
VAE (Variational Autoencoder)
Outputs mean and variance in the hidden layer, and uses them to output new data with different conditions from the input data.
45. GAN (Generative Adversarial Networks)
Instability during training is a bottleneck.
Generator
Discriminator
Mode Collapse
When the generated data becomes biased.
46. Object Detection
Recent object detection algorithms perform region of interest determination and label estimation in a single neural network.
| Method | Recognition Accuracy | Processing Speed |
|---|---|---|
| Faster R-CNN | Excellent | Poor |
| SSD | Good | Good |
| YOLO | Fair | Excellent |
Discussion