Machine learning actual Combat reading notes (i) Machine learning basics

Source: Internet
Author: User

http://sourceforge.net/projects/numpy/files/download the corresponding version of the NumPy, everywhere, find a not python2.7

Use Pip, please.

Pip Install NumPy

Download finished, the hint does not install C + +, meaning is also to install VS2008, but installed is VS2012, had to download a VC for Python

http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266

Re-pip, wait for the most of the day, the final count is successful

Input command introduced NumPy

From numpy Import *

Operation:

Input

Random.rand (bis)

Transition to Matrix

Randmat=mat (Random.rand (bis))

To find the inverse of a matrix

Randmat.i

Save it to a variable.

Invrandmat=randmat.i

Multiply, the result should be the unit matrix, that is, the diagonal full 1, the others are 0

Randmat*invrandmat

Eye function to create a 4*4 unit matrix

Machine learning actual Combat reading notes (i) Machine learning basics

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.