





























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 are alternative terms of a Cost 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? #
What is mean normalization? #
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. State the cost function for neural networks. #
What is the relationship between the degree of the polynomial d and the underfitting or overfitting of our hypothesis? #
For linear regression What is the test set error for linear classification? For classification ~ Misclassification error (aka 0/1 misclassification error): What is the average test error for the test set? The average test error for the test set is. This gives us the proportion of the test data that was misclassified. Just because a learning algorithm fits a training set well, that does not mean [...] Just because a learning algorithm fits a training set well, that does not mean it is a good hypothesis. The error of your hypothesis as measured on the data set with which you trained the parameters will be [...] The error of your hypothesis as measured on the data set with which you trained the parameters will be lower than any other data set. Model Selection without the validation set?
Or to say it another way, when we have lot more examples from one class than from the other clas Predicted: 1, Actual: 1 Predicted: 1, Actual: 1 --- True positive Predicted: 0, Actual: 0 Predicted: 0, Actual: 0 --- True negative Predicted: 0, Actual, 1 Predicted: 0, Actual, 1 --- False negative Predicted: 1, Actual: 0 Predicted: 1, Actual: 0 --- False positive Precision: of all patients we predicted where y=1, [...] Precision: of all patients we predicted where y=1, what fraction actually has cancer? Recall: Of all the patients that actually have cancer, what [...] Recall: Of all the patients that actually have cancer, what fraction did we correctly detect as having cancer? When is the F1 score not defined? if an algorithm predicts only negatives like it does in one of exercises, the precision is not defined, it is impossible to divide by 0. We might want a confident prediction of two classes using logistic regression. One way is to [...] We might want a confident prediction of two classes using logistic regression. One way is to increase our threshold. This way, we only predict cancer if the patient has a 70% chance. What tradeoff will we have if we want a more confident prediction of two classes using logistic regression? Doing this, we will have higher precision but lower recall (refer to the definitions in the previous section). What is the result if we want to get a very safe prediction? This will cause higher recall but lower precision.
Trading Off Precision and Recal The greater the threshold, the [...] The greater the threshold, the greater the precision and the lower the recall. Trading Off Precision and Recal The lower the threshold, the [...] The lower the threshold, the greater the recall and the lower the precisio Trading Off Precision and Recal In order to turn these two metrics into one single number, we can [...] In order to turn these two metrics into one single number, we can take the F value. In order for the F Score to be large, [...] In order for the F Score to be large, both precision and recall must be large. We want to train precision and recall on the [...] We want to train precision and recall on the cross validation set so as not to bias our test set In certain cases, an "inferior algorithm," if given [...], can [...] In certain cases, an "inferior algorithm," if given enough data, can outperform a superior algorithm with less data. We must choose our features to have [...]. A useful test is: [...] We must choose our features to have enough information. A useful test is: Given input x, would a human expert be able to confidently predict y? What is the "Rationale for large data"? Rationale for large data: if we have a low bias algorithm (many features or hidden units making a very complex function), then the larger the training set we use, the less we will have overfitting (and the more accurate the algorithm will be on the test set). The Support Vector Machine (SVM) is yet another type of supervised machine learning algorithm. It is sometimes [...] The Support Vector Machine (SVM) is yet another type of supervised machine learning algorithm. It is sometimes cleaner and more powerful.