Neural Network flashcards

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/49

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

50 Terms

1
New cards

cells that are connected to each other, forming networks and it is capable of both receiving and sending electrical signals

Neurons

2
New cards

 A mathematical model for learning inspired by biological neural networks. Model mathematical function from inputs to outputs based on the structure and parameters of the network. Allow for learning the network's parameters based on data

Artificial Neural Network

3
New cards

Mathematical Representation of a Basic Neural Network Structure

h(x₁, x₂) = w₀ + w₁x₁ + w₂x₂

4
New cards

what is w₀ in the context of a neural network structure

the bias term

5
New cards

what is x in the context of a neural network structure

The input

6
New cards

what is w in the context of a neural network structure

The weights

7
New cards

Enumerate the types of Activation function

  • Step Function

  • Logistic Sigmoid

  • Rectified Linear Unit (ReLU)

8
New cards

To use the hypothesis function to decide whether it rains or not, we need to create some sort of threshold based on the value it produces

Activation Functions

9
New cards

Give the formula of Step Function

g(x) = 1 if x ≥ 0, else 0

10
New cards

Give the formula of Logistic Sigmoid

g(x) = eˣ/(eˣ + 1)

11
New cards

Give the formula of Rectified Linear Unit (ReLU)

g(x) = max(0, x)

12
New cards

An Activation Function that gives 0 before a certain threshold is reached and 1 after the threshold is reached.

Step Function

13
New cards

An Activation Function that uses a logistic function, which gives as output any real number from 0 to 1

logistic sigmoid

14
New cards

An Activation Function which allows the output to be any positive value. If the value is negative, it sets it to 0

Rectified Linear Unit (ReLU)

15
New cards

What is the parallel of each neuron

unit

16
New cards

Types of Logic Gates with Neural Networks

  • OR Gate

  • AND Gate

17
New cards

General Form for Scaling to Multiple Inputs

g(Σᵢ₌₁ⁿ xᵢwᵢ + w₀)

18
New cards

Algorithm for minimizing loss when training neural networks:

Gradient Descent

19
New cards

Gradient Descent Algorithm

  1. Start with a random choice of weights

  2. Repeat:

    • Calculate the gradient based on all data points (direction that leads to decreasing loss)

    • Update weights according to the gradient

20
New cards

what is a problem with Gradient Descent

The problem with this kind of algorithm is that it requires to calculate the gradient based on all data points, which is computationally costly.

21
New cards

Variations of Gradient Descent

  • Stochastic Gradient Descent

  • Mini-Batch Gradient Descent

22
New cards

Stochastic Gradient Descent Algorithm 

  1. Start with a random choice of weights

  2. Repeat:

  •  Calculate the gradient based on one data point: (direction that leads to decreasing loss)

  • Update weights according to the gradient

23
New cards

What is an issue with Stochastic Gradient Descent

The gradient is calculated based on one point chosen at random. This kind of gradient can be quite inaccurate

24
New cards

Mini-Batch Gradient Descent algorithm

  1. Start with a random choice of weights

  2. Repeat:

  • Calculate the gradient based on one small batch: (direction that leads to decreasing loss)

  • Update weights according to the gradient

25
New cards

What is an advantage of Mini-Batch Gradient Descent

Computes the gradient based on on a few points selected at random, thus finding a compromise between computation cost and accuracy

26
New cards

limitations of perceptron output units

  • Only capable of learning linearly separable decision boundaries

  • Cannot solve problems like XOR gate

27
New cards

A neural network is an artificial neural network with an input layer, an output layer, and at least one hidden layer

Multilayer Neural Networks

28
New cards

Algorithm for training neural networks with hidden layers

Backpropagation

29
New cards

Backpropagation Algorithm

  1. Start with random choice of weights

  2. Repeat:

    • Calculate error for output layer

    • For each layer, starting with output layer, moving inwards towards earliest hidden layer:

      • Propagate error back one layer

      • Update weights

30
New cards

Neural networks with multiple hidden layers

Deep Neural Networks

31
New cards

Temporarily removing units - selected at random - from a neural network to prevent over-reliance on certain units

Dropout

32
New cards

a free, open-source platform developed by Google for building and deploying machine learning and deep learning models


TensorFlow

33
New cards

Computational methods for analyzing and understanding digital images

Computer Vision

34
New cards

How is Image Represented

  • Images represented as pixel values (0-255 for grayscale, RGB values for color)

  • Each pixel can be treated as input to neural network

35
New cards

Applying a filter that adds each pixel value of an image to its neighbors, weighted according to a kernel matrix

Image Convolution

36
New cards

Kernel for edge detection

knowt flashcard image
37
New cards

Reducing the size of an input by sampling from regions in the input

Pooling

38
New cards

Pooling by choosing the maximum value in each region

Max-Pooling

39
New cards

what is an advantage of Max-Pooling

  • Reduces computational complexity

  • Provides translation invariance

40
New cards

Neural networks that use convolution, usually for analyzing images

Convolutional Neural Network (CNN)

41
New cards

Architecture flow of CNN

Convolution → Pooling → Flattening

42
New cards

Neural network that has connections only in one direction. Information flows from input to output without loops

Feed-Forward Neural Networks

43
New cards

Neural network that generates output that feeds back into its own inputs.

Recurrent Neural Networks (RNNs)

44
New cards

Advantages of Recurrent Neural Networks (RNNs)

  • Can process sequences of data

  • Memory of previous inputs

  • Useful for tasks like language translation, text generation

45
New cards

Popular framework for building and training neural networks.

TensorFlow

46
New cards

What are the 3 main architectures of neural network

  • Feedforward networks for basic classification/regression

  • CNNs for image processing

  • RNNs for sequential data processing

47
New cards

Consider the neural network below, where we set:

  • w0 = -5

  • w1 = 2

  • w2 = -1 and

  • w3 = 3.

x1, x2, and x3 represent input neurons, and y represents the output neuron.

What value will this network compute for y given inputs x1 = 3, x2 = 2, and x3 = 4 if we use a step activation function? What if we u


1 for step activation function, 11 for ReLU activation function

48
New cards

How many total weights (including biases) will there be for a fully connected neural network with a single input layer with 3 units, a single hidden layer with 5 units, and a single output layer with 4 units?

44

49
New cards

Consider a recurrent neural network that listens to an audio speech sample, and classifies it according to whose voice it is. What network architecture is the best fit for this problem?

 Many-to-one (multiple inputs, single output)

50
New cards
term image

[[16, 12], [32, 28]]