Deep Learning and Neural Networks: Perceptrons, MLPs, and Optimization

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/29

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering artificial intelligence, machine learning, biological vs. artificial neurons, perceptron learning rules, activation functions, multilayer perceptrons (MLP), backpropagation calculations, gradient descent variants, and Keras implementations from TP1 and TP2.

30 Terms

1
New cards

Artificial Intelligence (AI)

The overarching field comprising all techniques that allow a machine to carry out tasks normally requiring human intelligence, including reasoning, planning, perception, and natural language, encompassing non-learning methods such as rule-based expert systems and search algorithms.

2
New cards

Machine Learning (ML)

A subfield of artificial intelligence where algorithms learn patterns from data by using an optimization algorithm to minimize the error between predictions and target values, rather than being explicitly programmed with manual rules.

3
New cards
<p>Deep Learning (DL)</p>

Deep Learning (DL)

A specialized branch of machine learning that utilizes artificial neural networks with multiple hidden layers to automatically and progressively extract hierarchical, higher-level feature representations directly from raw inputs.

4
New cards

Classical Programming

A software paradigm where developers manually write exact rules to process input data into answers, in contrast to machine learning where data and answers are supplied so the algorithm can infer the underlying rules.

5
New cards
<p>Biological Neuron</p>

Biological Neuron

A specialized biological cell consisting of dendrites that receive incoming electrical signals, a cell body (perikaryon) that processes and sums them, an axon that transmits the outgoing signal, and synapses connecting to downstream cells.

6
New cards

Perceptron

An early and elementary artificial neuron model that calculates a weighted sum of inputs plus a bias, then applies an activation function to yield a single output for classification or regression tasks.

7
New cards

Step Function (Heaviside)

A threshold activation function defined as f(x)={0for x<01for x≥0f(x) = \begin{cases} 0 & \text{for } x < 0 \\ 1 & \text{for } x \ge 0 \end{cases}, producing a discrete binary activation output.

8
New cards

Linear Activation Function

An activation function defined as u=xu = x that performs no transformation on the weighted input sum, primarily utilized in regression tasks.

9
New cards
<p>Sigmoid Activation Function</p>

Sigmoid Activation Function

An S-shaped non-linear activation function defined as f(x)=11+e−xf(x) = \frac{1}{1 + e^{-x}}, restricting output values to the interval (0,1)(0, 1), making it suitable for probability estimation and binary classification.

10
New cards

Hyperbolic Tangent Function (tanh⁡\tanh)

An activation function defined as u=e2x−1e2x+1u = \frac{e^{2x} - 1}{e^{2x} + 1}, which squashes inputs into the range [−1,1][-1, 1] and serves as an alternative to the sigmoid function when classes are encoded as {−1,+1}\{-1, +1\}.

11
New cards
<p>Rectified Linear Unit (ReLU)</p>

Rectified Linear Unit (ReLU)

An activation function defined as f(x)=max⁡(0,x)f(x) = \max(0, x), which outputs the input directly if x>0x > 0 and outputs 00 if x≤0x \le 0.

12
New cards

Perceptron Learning Rule

An update formula for adjusting single-layer perceptron weights upon error, defined as wi←wi+α(yreal−y)xiw_i \leftarrow w_i + \alpha (y_{\text{real}} - y) x_i, where α\alpha is the learning rate.

13
New cards
<p>Linear Separability Limitation</p>

Linear Separability Limitation

The structural constraint that prevents a single-layer perceptron from solving non-linearly separable problems (such as the XOR function), as it can only establish a single straight hyperplanar decision boundary.

14
New cards
<p>Multilayer Perceptron (MLP)</p>

Multilayer Perceptron (MLP)

A feedforward artificial neural network architecture containing an input layer, one or more hidden layers performing intermediate non-linear computations, and an output layer, capable of learning non-linear functions.

15
New cards

Synaptic Weight (WW)

An adjustable parameter assigned to an input connection of a neuron that determines the importance and relative contribution of that input to the overall activation.

16
New cards

Bias (bb)

A trainable constant parameter added to the weighted input sum of a neuron to shift the activation function, independent of the input features.

17
New cards

Forward Pass

The operational step where input features flow forward through the layers and neurons of a network to compute intermediate activations and produce a predicted output.

18
New cards

Backpropagation

An algorithm for training multilayer neural networks that propagates the output prediction error backward layer-by-layer to calculate the partial derivatives of the loss with respect to each weight.

19
New cards

Chain Rule (Calculus)

The differentiation principle used in backpropagation to decompose the partial derivative of the error with respect to any weight into a product of local derivatives: ∂E∂W=∂E∂Predicted×∂Predicted∂s×∂s∂W\frac{\partial E}{\partial W} = \frac{\partial E}{\partial \text{Predicted}} \times \frac{\partial \text{Predicted}}{\partial s} \times \frac{\partial s}{\partial W}.

20
New cards

Squared Error Function

A quadratic cost function used to measure prediction inaccuracy, defined as E=12(desired−predicted)2E = \frac{1}{2}(\text{desired} - \text{predicted})^2.

21
New cards
<p>Gradient Descent</p>

Gradient Descent

An iterative optimization algorithm that updates weights and biases by stepping in the direction opposite to the error gradient according to Wnew=Wold−η∂E∂WW_{\text{new}} = W_{\text{old}} - \eta \frac{\partial E}{\partial W} in order to reach a minimum.

22
New cards

Learning Rate (η\eta)

A hyperparameter setting the step size for weight adjustments during gradient descent; values that are too small cause sluggish convergence, while values that are too large cause destabilization, loss escalation, or overshooting.

23
New cards

Epoch

A single full training cycle during which every sample in the training dataset has passed through the network once.

24
New cards

Batch Gradient Descent

A gradient descent variant that computes the total error over the entire training set before executing a single weight update per epoch, providing stable updates at the cost of high computational time on large datasets.

25
New cards

Stochastic Gradient Descent (SGD)

A gradient descent variant that calculates the error and updates model weights immediately after examining each individual randomly selected training example, resulting in fast but fluctuating updates.

26
New cards

Mini-batch Gradient Descent

A compromise gradient descent method that computes errors and executes weight updates on small batches of training samples (e.g., 3232 examples) rather than individual instances or the entire dataset.

27
New cards

Dense Layer

A fully connected layer in Keras where every neuron receives inputs from every feature or neuron of the previous layer.

28
New cards

Binary Cross-Entropy

A standard loss function applied to binary classification models that quantifies the divergence between predicted probabilities and ground-truth binary targets.

29
New cards
<p>Pizza Sauce Detection Model Architecture (TP2)</p>

Pizza Sauce Detection Model Architecture (TP2)

A two-layer network configured to solve the XOR-like pizza sauce error problem using a hidden Dense layer of 22 sigmoid neurons and an output Dense layer of 11 sigmoid neuron, comprising a total of 99 trainable parameters.

30
New cards
<p>Single-Neuron Classifier (TP1)</p>

Single-Neuron Classifier (TP1)

A minimal neural network model constructed with a single Dense sigmoid neuron (Dense(units=1, input_dim=2, activation='sigmoid')) to classify two ingredient categories (corn vs. olives) using shape and color, requiring 33 trainable parameters.