http://stackoverflow.com/questions/8634700/python-indentationerror-unexpected-indent
python代碼中不能使用制表符來縮進,需要使用4個空格祠够,否則會出錯
正則表達式re.findall()返回格式為list
list [ ]
dictionary { }
tuple ( )
import
def plot_decision_boundary(pred_func, X, y):
#from https://github.com/dennybritz/nn-from-scratch/blob/master/nn-from-scratch.ipynb
# Set min and max values and give it some padding
x_min, x_max = X[:, 0].min() - .5, X[:, 0].max() + .5
y_min, y_max = X[:, 1].min() - .5, X[:, 1].max() + .5
用x_min, x_max來標記X第0列的最大值和最小值
用y_min, y_max來標記X第1列的最大值和最小值