homework:2018-py01

This shows you the differences between two versions of the page.

— |
homework:2018-py01 [2019/03/05 08:15] (current) hongxin created |
||
---|---|---|---|

Line 1: | Line 1: | ||

+ | ====== Homework 01 ====== | ||

+ | ===== Goal ===== | ||

+ | Implement polynomial curve fitting in python and with TensorFlow (optionally). | ||

+ | |||

+ | 1. sample the function curve of y=sin(x) with Gaussian noise | ||

+ | {{ :homework:curve-fitting-d3.png?300 |}} | ||

+ | |||

+ | 2. fit degree 3 and 9 curves in 10 samples | ||

+ | {{ :homework:curve-fitting-d9.png?300 |}} | ||

+ | |||

+ | 3. fit degree 9 curves in 15 and 100 samples | ||

+ | {{ :homework:curve-fitting-d9s15.png?300 |}} | ||

+ | {{ :homework:curve-fitting-d9s100.png?300 |}} | ||

+ | |||

+ | |||

+ | 4. fit degree 9 curve in 10 samples but with regularization term | ||

+ | {{ :homework:curve-fitting-d9s10r.png?300 |}} | ||

+ | |||

+ | ===== Requirements ===== | ||

+ | - Programming lanuage: python | ||

+ | - Optional package: tensorflow [[https://www.tensorflow.org|web]] | ||

+ | - Plot the results in [[http://matplotlib.org/|matplotlib]][[http://www.ibm.com/developerworks/cn/linux/l-matplotlib/index.html|Introduction in Chinese]] [[http://www.ast.uct.ac.za/~sarblyth/pythonGuide/PythonPlottingBeginnersGuide.pdf|Tutorial]] |

homework/2018-py01.txt · Last modified: 2019/03/05 08:15 by hongxin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International