








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









What is the definition of learning from experience for a computer program?
A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E.
Which problems can be solved with unsupervised learning? #
What is the definition of a supervised learning problem? Given a training set, learn a function h such that h of an input variable x is a "good" predictor for the corresponding output variable y.
What is the definition of a hypothesis? The predicting function h.
Give the pictorial process for a supervised learning problem.
Supervised Learning Problem.
What do we call a learning problem, if the target variable is continuous?
When the target variable that we're trying to predict is continuous, the learning problem is also called a regression problem.
What do we call a learning problem, if the target variable can take on only a small number of values?
When y can take on only a small number of discrete values, the learning problem is also called a classification problem.
How do we measure the accuracy of a hypothesis function?
By using a cost function, usually denoted by J.
What is the definition of a cost function of a supervised learning problem?
Takes an average difference of all the results of the hypothesis with inputs from x's and the actual output y's.
Give a pictorial representation of what the cost function of a supervised learning problem does.
Cost function of a supervised learning problem.
What are alternative terms of a Cost Function? #2 • Squared error function.
What is a visual interpretation of the cost function? #2 • The training data set is scattered on the X-Y plane.
How does gradient descent converge with a fixed step size alpha? #
What is the algorithm for implementing gradient descent for linear regression? #
Give a derivation of for a single example in batch gradient descent! (Gradient Descent For Linear Regression)
Derivation of a single variable in gradient descent.
What is batch gradient descent? #2 (Gradient Descent For Linear Regression)
How does batch gradient descent differ from gradient descent? (Gradient Descent For Linear Regression)
While gradient descent can be susceptible to local minima in general, batch gradient descent has only one global, and no other local, optima.
Depict an example of gradient descent as it is run to minimize a quadratic function. #
What is multivariate linear regression? Linear regression with multiple variables.
What is the notation for equations where we can have any number of input variables? (Multivariate Linear Regression)
Notation.
What is the multivariate form of a hypothesis function? Multivariate form of the hypothesis function.
What is the intuition of the multivariable form of a hypothesis function in the example of estimating housing prices? #
Give the vectorization of the multivariable form of a hypothesis function.
Using the definition of matrix multiplication, our multivariable hypothesis function can be concisely represented as:
Why do we assume that x0=1 in multivariate linear regression?
Convention.
What is the Gradient Descent for Multiple Variables? #2 • The gradient descent equation itself is generally the same form.
What is the Automatic convergence test in gradient descent? #
How can we improve our features? (Multivariate Linear Regression) #
How can we improve the form of our hypothesis function? (Multivariate Linear Regression)
By making it a quadratic, cubic or square root function (or any other form).
What important thing should one keep in mind if one changes the form of a hypothesis function? (Multivariate Linear Regression) #
State the normal equation formula! Normal Equation Formula.
Compare gradient descent and the normal equation! The following is a comparison of gradient descent and the normal equation:
Does feature scaling speed up the implementation of the normal equation?
There is no need to do feature scaling with the normal equation.
What is the complexity of computing the inversion with the normal equation?
With the normal equation, computing the inversion has complexity of n cubed.
When might it be a good time to go from a normal solution to an iterative process?
When the number of examples exceeds 10,000 due to the complexity of the normal equation.
Which function do we want to use in octave when implementing the normal equation? #
What are common causes for X Transpose X to be noninvertible? #
How do we change the form of our binary hypothesis function to be continuous in the range between 0 and 1?
By using the Sigmoid Function, also called the Logistic Function.
How can we interpret the output of our logistic function? h of theta of a given input variable give us the probability that our output is 1.
How can we get our discrete 0 or 1 classification from a logistic function?
We can translate the output of the hypothesis function as follows:
What is the decision boundary given a logistic function?
How does the cost function for a logistic regression look like? #
Plot the cost function J, if the correct answer for y is 1. • If our correct answer 'y' is 1, then the cost function will be 0 if our hypothesis function outputs 1.
What is underfitting? Underfitting, or high bias, is when the form of our hypothesis function h maps poorly to the trend of the data.
What usually causes underfitting? It is usually caused by a function that is too simple or uses too few features.
What is overfitting? Overfitting, or high variance, is caused by a hypothesis function that fits the available data but does not generalize well to predict new data.
What usually causes overfitting? It is usually caused by a complicated function that creates a lot of unnecessary curves and angles unrelated to the data.
What are the two main options to address the issue of overfitting? #
Reduce the number of features:
Regularization:
In a basic sense, what are neurons? Neurons are basically computational units that take inputs, called dendrites, as electrical inputs, called "spikes", that are channeled to outputs , called axons.
What are the dendrites in the model of neural networks? In our model, our dendrites are like the input features.
What are the axons in the model of neural networks? In our model, the axons are the results of our hypothesis function.
What is the bias unit of a neural network? #2 • The input node x0 is sometimes called the "bias unit."
What are the weights of a neural network? Using the logistic function, our "theta" parameters are sometimes called "weights".
What is the activation function of a neural network? The logistic function (as in classification) is also called a sigmoid (logistic) activation function.
How do we label the hidden layers of a neural network?
How do we determine the dimension of the matrices of weights? (Neural Network) #
How do we obtain the values for each of the activation nodes, given a single-layer neural network with 3 activation nodes and a 4-dimensional input? #
Give an example of the implementation of the OR- function as a neural network!
The following is an example of the logical operator 'OR', meaning either x1 is true or x2 is true, or both:
Give an example of the implementation of the AND- function as a neural network!
The following is an example of the logical operator AND, meaning it s only true if both x1 and x2 are 1.
What are the theta-matrices for implementing the logical functions 'AND', 'NOR', and 'OR' as a neural network?
Theta Matrices for Neural Network implementation.
How can we implement the 'XNOR' operator with a neural network?
We can implement the 'XNOR' operator by using two hidden layers.
Give an example of a neural network which classifies data into one of four categories!
The inner layers, each provide us with some new information which leads to our final hypothesis function.
How does one train a neural network? #6 1. Randomly initialize the weights.
What code is implemented if we perform forward and back propagation?
When we perform forward and back propagation, we loop on every training example.
How can we break down our decision process deciding what to do next? #
What issue poses a neural network with fewer parameters?
A neural network with fewer parameters is prone to underfitting.
What issue poses a neural network with more parameters?
A large neural network with more parameters is prone to overfitting.
How can you address the overfitting of a large neural network?
In this case you can use regularization (increase λ) to address the overfitting.
What bias-variance tradeoff do lower-order polynomials (low model complexity) have?
Lower-order polynomials (low model complexity) have high bias and low variance.
What is the issue with higher-oder polynomials in regard to fitting the training data and test data?
Higher-order polynomials (high model complexity) fit the training data extremely well and the test data extremely poorly.
What bias-variance tradeoff do higher-order polynomials (high model complexity) have?
Higher-order polynomials (high model complexity) have low bias on the training data, but very high variance.
Why does training an algorithm on a very few number of data points easily have 0 errors?
Because we can always find a quadratic curve that touches exactly those number of points.
How does one experience high bias with a low training set size?
Low training set size: causes J train of theta to be low and J CV of theta to be high.