ML with AWS Flashcards

1
Q

Three main components of neural networks

A
  1. Input Layer: This layer receives data during training and when inference is performed after the model has been trained.
  2. Hidden Layer: This layer finds important features in the input data that have predictive power based on the labels provided during training.
  3. Output Layer: This layer generates the output or prediction of your model
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain convolutional neural networks (CNNs) in modern computer vision

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

feature extraction

A

hidden layers are used to extract different information about images

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Image classification

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Object detection

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Semantic segmentation

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Activity recognition

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Input Layer

A

The first layer in a neural network. This layer receives all data that passes through the neural network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Hidden Layer

A

A layer that occurs between the output and input layers. Hidden layers are tailored to a specific task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Output Layer

A

The last layer in a neural network. This layer is where the predictions are generated based on the information captured in the hidden layers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Machine Learning workflow review

A
  1. Define the problem
  2. Build the dataset
  3. Train the model
  4. Evaluate the model
  5. Use the model
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

reinforcement learning (RL)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

maximizing total cumulative reward

A

over time, the agent learns, through trial and error, to map gainful actions to situations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Agent

A

The piece of software you are training is called an agent. It makes decisions in an environment to reach a goal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Environment

A

The environment is the surrounding area with which the agent interacts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Reward

A

Feedback is given to an agent for each action it takes in a given state. This feedback is a numerical reward

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Action

A

For every state, an agent needs to take an action toward achieving its goal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Episode

A

An episode represents a period of trial and error when an agent makes decisions and gets feedback from its environment.

19
Q

A reinforcement learning model

A

an agent learns in an interactive real-time environment by trial and error using feedback from its own actions. Feedback is given in the form of rewards.

20
Q

Training algorithm

A

Defines the model’s learning objective, which is to maximize total cumulative reward. Different algorithms have different strategies for going about this

21
Q

Soft actor critic (SAC)

A

embraces exploration and is data-efficient, but can lack stability.

22
Q

Proximal policy optimization (PPO)

A

is stable but data-hungry

23
Q

An action space

A

Is the set of all valid actions, or choices, available to an agent as it interacts with an environment.

24
Q

Discrete action space

A

represents all of an agent’s possible actions for each state in a finite set of steering angle and throttle value combinations.

25
Q

Continuous action space

A

allows the agent to select an action from a range of values that you define for each state

26
Q

Learning rate

A

is a hyperparameter that controls how many new experiences are counted in learning at each step. A higher learning rate results in faster training but may reduce the model’s quality.

27
Q

Reward function

A

Its purpose is to encourage the agent to reach its goal. (Figuring out how to reward which actions is one of your most important jobs.)

28
Q

Key points to remember about reward functions in AWS deep racer

A

Each state on the grid is assigned a score by your reward function. You incentivize behavior that supports your car’s goal of completing fast laps by giving the highest numbers to the parts of the track on which you want it to drive.

The reward function is the actual code you’ll write to help your agent determine if the action it just took was good or bad, and how good or bad it was.

29
Q

Key points to remember about exploration versus exploitation in AWS deep racer

A

When a car first starts out, it explores by wandering in random directions. However, the more training an agent gets, the more it learns about an environment. This experience helps it become more confident about the actions it chooses.

Exploitation means the car begins to exploit or use information from previous experiences to help it reach its goal. Different training algorithms utilize exploration and exploitation differently

30
Q

Exploration versus exploitation

A

An agent should exploit known information from previous experiences to achieve higher cumulative rewards, but it also needs to explore to gain new experiences that can be used in choosing the best actions in the future.

31
Q

Generative AI

A

is one of the biggest recent advancements in artificial intelligence because of its ability to create new things.

32
Q

discriminative models

A

A discriminative model aims to answer the question, “If I’m looking at some data, how can I best classify this data or predict a value?” For example, we could use discriminative models to detect if a camera was pointed at a cat.

33
Q

A generative model aims to answer the question

A

“Have I seen data like this before?” In our image classification example, we might still use a generative model by framing the problem in terms of whether an image with the label “cat” is more similar to data you’ve seen before than an image with the label “no cat.”

However, generative models can be used to support a second use case. The patterns learned in generative models can be used to create brand new examples of data which look similar to the data it seen before.

34
Q

Three popular types of generative models

A

generative adversarial networks (GANs)
general autoregressive models
transformer-based models.

35
Q

Autoregressive models

A

Autoregressive convolutional neural networks (AR-CNNs) are used to study systems that evolve over time and assume that the likelihood of some data depends only on what has happened in the past. It’s a useful way of looking at many systems, from weather prediction to stock prediction.

36
Q

Generative adversarial networks (GANs)

A

Generative adversarial networks (GANs), are a machine learning model format that involves pitting two networks against each other to generate new content. The training algorithm swaps back and forth between training a generator network (responsible for producing new data) and a discriminator network (responsible for measuring how closely the generator network’s data represents the training dataset).

37
Q

Transformer-based models

A

Transformer-based models are most often used to study data with some sequential structure (such as the sequence of words in a sentence). Transformer-based methods are now a common modern tool for modeling natural language.

38
Q

What are GANs

A

A GAN is a type of generative machine learning model which pits two neural networks against each other to generate new content: a generator and a discriminator.

A generator is a neural network that learns to create new data resembling the source data on which it was trained.
A discriminator is another neural network trained to differentiate between real and synthetic data.
The generator and the discriminator are trained in alternating cycles. The generator learns to produce more and more realistic data while the discriminator iteratively gets better at learning to differentiate real data from the newly created data.

39
Q

Generator

A

A neural network that learns to create new data resembling the source data on which it was trained.

40
Q

Discriminator

A

A neural network trained to differentiate between real and synthetic data.

41
Q

Generator loss

A

Measures how far the output data deviates from the real data present in the training dataset.

42
Q

Discriminator loss

A

Evaluates how well the discriminator differentiates between real and fake data.

43
Q

Autoregressive convolutional neural networks

A

make iterative changes over time to create new data.