Artificial Intelligence Experiment Report

Source: Internet
Author: User
Tags clear screen

Computer Experiment Report of Guizhou Normal University

Course name : Artificial Intelligence class : level meter This experiment date : 2016/5/5

School Number : 136201010522 name : li Ying score :

First, the name of the experiment

Linear Regression Prediction System

Second, the purpose and requirements of the experiment

The basic method of understanding and mastering linear regression prediction can be programmed to implement a simple linear regression prediction system.

1, familiar with MATLAB programming language;

2, the linear regression prediction function, the cost function design and implementation;

3, using gradient descent algorithm for parameter learning;

Third, the experimental tools

Matlab

Iv. contents of the experiment

1, installation Programming tool: Octave, tick the image,:

2, after installation octave, double-click the corresponding icon to open the desktop: You can use the command line to run the program, the commonly used commands are as follows:

Change current directory command: CD

Show current path command: pwd

Show when directory command: LS
Clear Screen Command: CLC

Enter PS1 (">>") as shown:

3, installs the notepad++, uses the notepad++ editor to open the file myclass-ex1 inside the procedure, respectively will computecost.m and GRADIENDESCENT.M drags to notepad++ inside.

Add the following code to the COMPUTECOST.M:

Add the following code to the GRADIENDESCENT.M:

4. Enter the following command in octave, as shown in:

5. The experimental results are as follows:

Using the mouse to click on the graphic above, it will change, after changing the graphic as follows:

V. Conclusion

(1) The correlation between variables is analyzed by experiment, then the parameters are estimated and the relevant data are obtained.

(2) Add the corresponding code in the corresponding file so that the octave at run time to the desired result.

(3) in the use of software at the same time, although sometimes encountered steps and results of different circumstances, through this experiment, I also deeply realized that octave is a very practical software, for the future study has a great role.

(4) How to solve problems correctly and rationally is the most important task at present.

Artificial Intelligence Experiment Report

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.