摘要:
# coding:utf-8 import numpy as np import matplotlib.pyplot as plt x = np.arange(-5/2,5/2,0.01) y = -x**3+x**2+np.e+x**4 dy = lambda x:-3*x**2+2*x+4*x**3 dyy = lambda x:-6*x+2+12*x**2 a = 0.001 def... 阅读全文
posted @ 2018-12-07 22:28
ARYOUOK
阅读(761)
评论(0)
推荐(0)
摘要:
一、acc、recall、F1、混淆矩阵、分类综合报告 1、准确率 第一种方式:accuracy_score # 准确率import numpy as np from sklearn.metrics import accuracy_score y_pred = [0, 2, 1, 3,9,9,8,5 阅读全文
posted @ 2018-12-07 19:18
ARYOUOK
阅读(767)
评论(0)
推荐(0)
摘要:
# codind:utf-8 from sklearn.linear_model import SGDRegressor,LinearRegression,Ridge from sklearn.preprocessing import PolynomialFeatures import numpy as np import matplotlib.pyplot as plt x = np.ar... 阅读全文
posted @ 2018-12-07 19:09
ARYOUOK
阅读(1558)
评论(0)
推荐(0)

浙公网安备 33010602011771号