摘要: import numpy as np import matplotlib.pyplot as plt x=np.linspace(-1,1,200) y=1/(1+np.exp(10*x-1)) plt.plot(x,y) plt.show() 阅读全文
posted @ 2019-07-11 23:52 TIMLONG 阅读(204) 评论(0) 推荐(0)
摘要: # encoding: utf-8 from sklearn.linear_model import LogisticRegression import numpy as np from sklearn import model_selection import matplotlib.pyplot as plt import matplotlib as mpl from matplotlib i... 阅读全文
posted @ 2019-07-11 16:08 TIMLONG 阅读(2250) 评论(0) 推荐(0)
摘要: from sklearn.linear_model import LinearRegression,Lasso,Ridge from sklearn.datasets import load_boston import matplotlib.pyplot as plt boston=load_boston() data = boston.data target = boston.target ... 阅读全文
posted @ 2019-07-11 10:56 TIMLONG 阅读(488) 评论(0) 推荐(0)