摘要:
from matplotlib import pyplot as pltfrom sklearn.datasets import load_irisimport numpy as npdata=load_iris()feature_names=data['featrue_names']target=... 阅读全文
摘要:
定义了一个函数error,单独保存在了error.py中,def error(f,x,y): return sp.sum((f(x)-y)**2)第一次使用时报错:TypeError: 'module' object is not callable思考之后发现,error作为一个模块,和它内部... 阅读全文
摘要:
错误代码:Traceback (most recent call last): File "D:/Python27/1400OS_01_Codes/code/sp_genfromtxt.py", line 3, in data=sp.genfromtxt("web_traffic.tsv"... 阅读全文