ML with AWS Flashcards
Three main components of neural networks
- Input Layer: This layer receives data during training and when inference is performed after the model has been trained.
- Hidden Layer: This layer finds important features in the input data that have predictive power based on the labels provided during training.
- Output Layer: This layer generates the output or prediction of your model
Explain convolutional neural networks (CNNs) in modern computer vision
In these neural networks, the hidden layers are used to extract different information about images. We call this process feature extraction.
These models can be trained much faster on millions of images and generate a better prediction than earlier models.
feature extraction
hidden layers are used to extract different information about images
Image classification
is the most common application of computer vision in use today. Image classification can be used to answer questions like What’s in this image? This type of task has applications in text detection or optical character recognition (OCR) and content moderation.
Object detection
is closely related to image classification, but it allows users to gather more granular detail about an image. For example, rather than just knowing whether an object is present in an image, a user might want to know if there are multiple instances of the same object present in an image, or if objects from different classes appear in the same image.
Semantic segmentation
is another common application of computer vision that takes a pixel-by-pixel approach. Instead of just identifying whether an object is present or not, it tries to identify down the pixel level which part of the image is part of the object.
Activity recognition
is an application of computer vision that is based around videos rather than just images. Video has the added dimension of time and, therefore, models are able to detect changes that occur over time
Input Layer
The first layer in a neural network. This layer receives all data that passes through the neural network.
Hidden Layer
A layer that occurs between the output and input layers. Hidden layers are tailored to a specific task
Output Layer
The last layer in a neural network. This layer is where the predictions are generated based on the information captured in the hidden layers.
Machine Learning workflow review
- Define the problem
- Build the dataset
- Train the model
- Evaluate the model
- Use the model
reinforcement learning (RL)
an agent is trained to achieve a goal based on the feedback it receives as it interacts with an environment. It collects a number as a reward for each action it takes. Actions that help the agent achieve its goal are incentivized with higher numbers. Unhelpful actions result in a low reward or no reward
maximizing total cumulative reward
over time, the agent learns, through trial and error, to map gainful actions to situations
Agent
The piece of software you are training is called an agent. It makes decisions in an environment to reach a goal.
Environment
The environment is the surrounding area with which the agent interacts.
Reward
Feedback is given to an agent for each action it takes in a given state. This feedback is a numerical reward
Action
For every state, an agent needs to take an action toward achieving its goal.