Supervised learning and unsupervised learning

Source: Internet
Author: User

Supervised Learning

Given an algorithm that requires some data sets already have the correct answer. For example, given the price data set. Supervised learning is also called regression.

Example: House price prediction, cancer prediction

Unsupervised Learning

The sample set is not labeled, and a set of unlabeled data is divided into multiple clusters

Example: Organizing computer clusters, social network analysis

Cocktail Party Issues

Extracting effective information from background noise.

[W,s,v]=svd ((Repmat (sum (x.*x,1), size (x,1), 1). *x) *x ');

linear regression

For example, prices are as follows:

$x _{1}^{(i)}$ represents the living area of the first house, $x _{2}^{(i)}$ represents the number of bedrooms in the first house, so X is a two-dimensional vector.

Define hypothetical functions: $h _{\theta} (x) $=$\theta_{0}$+$\theta_{1}$ $x _{1}$+$\theta_{2}$ $x _{2}$

$h (x) =\sum_{i=0}^{n}\theta_{i}x_{i}$ = $\theta ^{t}x$

The next question is how to solve the $\theta$ value

Define the following loss function to indicate the proximity of $h (X^{i}) $ to $y^{i}$

$J (\theta) =\frac{1}{2}\sum_{i=1}^{m} (H_{\theta} (x^{(i)})-y^{{i}) ^{2}$

LMS Algorithm

Supervised learning and unsupervised learning

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.