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