User Tools

Site Tools


homework:2018-py01

Differences

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

Link to this comparison view

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