Alibabacloud.com offers a wide variety of articles about coursera machine learning andrew ng, easily find your coursera machine learning andrew ng information here online.
-Gradient descentThe gradient descent algorithm is an algorithm for calculating the minimum value of a function, and here we will use the gradient descent algorithm to find the minimum value of the cost function.The idea of a gradient descent is that we randomly select a combination of parameters and calculate the cost function at the beginning, and then we look for the next combination of parameters that will reduce the value of the cost function.We continue this process until a local minimum (
-Normal equationSo far, the gradient descent algorithm has been used in linear regression problems, but for some linear regression problems, the normal equation method is a better solution.The normal equation is solved by solving the following equations to find the parameters that make the cost function least:Assuming our training set feature matrix is x, our training set results are vector y, then the normal equation is used to solve the vector:The following table shows the data as an example:T
, the weight of the high-weighted data is increased by 1000 times times the probability, which is equivalent to replication. However, if you are traversing the entire test set (not sampling) to calculate the error, there is no need to modify the call probability, just add the weights of the corresponding errors and divide by N. So far, we have expanded the VC Bound, which is also set up on the issue of multiple classifications!SummaryFor more discussion and exchange on
-Gradient descent for linear regressionHere we apply the gradient descent algorithm to the linear regression model, we first review the gradient descent algorithm and the linear regression model:We then expand the slope of the gradient descent algorithm to the partial derivative:In most cases, the linear regression model cost function is shaped like a convex body, so the local minimum value is equivalent to the global minimum:The following is the entire convergence and parameter determination pr
Overview
photo OCR
problem Description and Pipeline
sliding Windows
getting Lots of data and Artificial data
ceiling analysis:what part of the Pipeline to work on Next
Review
Lecture Slides
Quiz:Application:Photo OCR
Conclusion
Summary and Thank You
Log
4/20/2017:1.1, 1.2;
Note
Ocr?
...
Coursera-
This section is about the nuclear svm,andrew Ng's handout, which is also well-spoken.The first is kernel trick, which uses nuclear techniques to simplify the calculation of low-dimensional features by mapping high-dimensional features. The handout also speaks of the determination of the kernel function, that is, what function K can use kernel trick.In addition, the kernel function can measure the similarity of two features, the greater the value, the
Welcome and Introductionoverviewreadinglog
9/9 videos and quiz completed;
10/29 Review;
Note1.1 Welcome
1) What are machine learning?
Machine learning are the science of getting compters to learn, without being explicitly programmed.
1.2 Introduction
Linear reg
Mainly for the week content: large-scale machine learning, cases, summary(i) Random gradient descent methodIf there is a large-scale training set, the normal batch gradient descent method needs to calculate the sum of squares of errors across the entire training set, which is a very large computational cost if the learning method needs to iterate 20 times.First,
II. Linear Regression with one Variable (Week 1)-Model representationIn the case of previous predictions of house prices, let's say that our training set of regression questions (Training set) looks like this:We use the following notation to describe the amount of regression problems:-M represents the number of instances in the training set-X represents the feature/input variable-Y represents the target variable/output variable-(x, y) represents an instance of a training set-Representing the
Mainly for the sixth week Content machine learning application recommendations and system design.What to do nextWhen training good one model, predicting unknown data discovery, how to improve it?
Get more examples of training
Try to reduce the number of features
Try to get more features
Try adding two-item features
Try to reduce the degree of normalization λ
Try to increase the
-Unsupervised learningIn supervised learning, whether it is a regression problem or a classification problem, we use the data to have a clear label or the corresponding prediction results.In unsupervised learning, our existing data have no corresponding results or labels, and some are just features. Therefore, the problem to be solved by unsupervised learning is
I've been talking about why machines can learn, and starting with this lesson are some basic machine learning algorithms, i.e. how machines learn.This lesson is about linear regression, starting with the minimization of Ein, introducing the Hat Matrix to understand the geometric meaning. Finally, the linear regression and binary classification are compared, and the reason why linear regression can be used t
Mainly for the ninth week content: Anomaly detection, recommendation system(i) Anomaly detection (DENSITY estimation) kernel density estimation ( Kernel density estimation X (1) , X (2) ,.., x (m) If the data set is normal, we want to know the new data X (test) p (x) After density estimation, it is a common method to select a probability threshold to determine whether it is an anomaly, which is often used in anomaly detection. Such as:
Gaussian distributionThe Gaussian k
a patient's tumour is malignant, depending on the size of the patient's tumour:Of course, sometimes we use more than one variable, such as the age of the patient, the size and shape of the tumour, and so on.In the picture, the circle represents benign and the fork is malignant, and the problem we want to learn becomes the division of benign tumors and malignant tumors.This problem is also called classification problem, the classification of the use of discrete values. We want to use this algori
This is what we have learned (except decision tree)Here is a typical decision tree algorithm, with four places to choose from:Then introduced a cart algorithm: By decision Stump divided into two categories, the criterion for measuring subtree is that the data are divided into two categories, the purity of these two types of data (purifying).The following is a measure of purity:Finally, when to stop:Decision tree may be overfitting, reducing the number of Ein and leaves (indicating the complexity
cost function least.The algorithm is:After derivation, get:Note: Although the resulting gradient descent algorithm appears to be the same as the gradient descent algorithm for linear regression, the hypothetical function here differs from the linear regression, so it is actually different. In addition, it is still necessary to perform feature scaling before applying the gradient descent algorithm.In addition, there are some alternatives to the gradient descent algorithm:In addition to the gradi
In this section, a linear model is introduced, and several linear models are compared, and the linear regression and the logistic regression are used for classification by the conversion error function.More important is this diagram, which explains why you can use linear regression or a logistic regression to replace linear classificationThen the stochastic gradient descent method is introduced, which is an improvement to the gradient descent method, which greatly improves the efficiency.Finally
-Polynomial regressionSince linear regression does not apply to all data, sometimes we need to use curves to fit our data, for example, with two-times polynomial:Or three-time polynomial:Usually we need to look at the data before deciding what model to try to fit.After that, we can make:The two-time polynomial is then converted to a linear regression model.It is worth noting that if we adopt a polynomial regression model, feature scaling is necessary before the gradient descent algorithm is run.
the transpose of the Matrix.-Gradient descent for multiple variablesSimilar to univariate/feature linear regression, in multivariable/feature linear regression, we will also define a cost function, namely:Our goal is the same as the problem in univariate/characteristic linear regression, which is to find out the combination of parameters that make the cost function least.Therefore, the multivariable/linear regression gradient descent algorithm is:ThatAfter the derivative number can be obtained:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.