上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 329 下一页
摘要: a = np.array([1,2,3,4,4,5,2,1]) 是np.array而不是arange() 还可以加参数dtype = float 例如a = np.array([1,2,3,4,4,5,2,1],dtype = float) ... 阅读全文
posted @ 2022-03-20 21:38 bH1pJ 阅读(104) 评论(0) 推荐(0) 编辑
摘要: plt.interactive(True) 阅读全文
posted @ 2022-03-20 21:38 bH1pJ 阅读(121) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt #这里应该把trace plot 出来,同时,还应该把峰值给plot出来;plt.figure()plt.plot(sigAv, color='red', label='dis')plt.plot... 阅读全文
posted @ 2022-03-20 21:38 bH1pJ 阅读(130) 评论(0) 推荐(0) 编辑
摘要: https://www.runoob.com/python/att-string-format.html 保留小数点后两位 :.2f "{:s}, Time:{:.2f}min, Size:{:.2f}Gb".for... 阅读全文
posted @ 2022-03-20 21:38 bH1pJ 阅读(80) 评论(0) 推荐(0) 编辑
摘要: size = [int(likely*max)] if int(likely*max) > 10 else 10 #最小是10 阅读全文
posted @ 2022-03-20 21:38 bH1pJ 阅读(660) 评论(0) 推荐(0) 编辑
摘要: 1、注册博客园 2、管理 3、搬家 4、执行 阅读全文
posted @ 2022-03-20 21:38 bH1pJ 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1、Fork原始仓库imagePy fork ImagePy仓库 #将父仓库fork到自己账户下,XXXX/.git(A仓库) 2、汉化 在lang/Chinese/Plugins下创建*.dic 进行汉化 汉化后,push到自己的仓库中(A仓库中) ... 阅读全文
posted @ 2022-03-20 21:38 bH1pJ 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 网上的理解五花八门,千奇百怪。但是很少有人能触碰到逻辑回归的精髓。我认为wiki上的讲解是最正统的。以下是我看wiki之后,自己的思考: https://en.wikipedia.org/wiki/Logistic_regression ... 阅读全文
posted @ 2022-03-20 21:37 bH1pJ 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 似然函数J(\theat),theat代表模型参数。就是下图中w^T*x-b= 0这条直线。 1、似然函数和损失函不一个概念。但两者的目的都用来评价模型的好坏。 2、损失函数loss function。是通过加法的形式,对每个样本进行遍历(或者说判定),... 阅读全文
posted @ 2022-03-20 21:37 bH1pJ 阅读(62) 评论(0) 推荐(0) 编辑
摘要: # 解决分类问题import mathfrom LinearRegression import *def calDistance(x,y,w,b): r""" 计算一个点(x,y)到直线(w,b)的距离 :param x: point x ... 阅读全文
posted @ 2022-03-20 21:37 bH1pJ 阅读(84) 评论(0) 推荐(0) 编辑
上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 329 下一页