笔记
小白炼丹师
这个作者很懒,什么都没留下…
展开
-
PLS-DA中的LV(潜在变量)数量
潜在变量数量就是降维后的数量参考:https://nirpyresearch.com/pls-discriminant-analysis-binary-classification-python/欢迎指正!转载 2021-01-18 16:46:37 · 2388 阅读 · 0 评论 -
Seaborn和Matplotlib对多类数据进行可视化并添加图例
import numpy as npimport pandas as pdimport matplotlibimport matplotlib.pyplot as pltimport seaborn as sns#matplotlib默认不显示中文font = {'family':'MicroSoft YaHei','weight':'bold'}matplotlib.rc('font',**font) #给matplotlib能够显示中文####################.原创 2020-10-19 22:55:42 · 1508 阅读 · 1 评论 -
Numpy将nan、inf替换为每列均值或者0
nan和inf替换成0import numpy as npa = np.array([[np.nan, np.nan, 1, 2], [np.inf, np.inf, 3, 4], [1, 1, 1, 1], [2, 2, 2, 2]])print (a)where_are_nan = np.isnan(a)where_are_inf = np.isinf(a)#nan替换成0,inf替换成nana[where_are_nan] = 0a[where_are_inf] = 0print原创 2020-10-13 16:20:17 · 6634 阅读 · 0 评论 -
MNIST数据包
MNIST数据包链接:https://pan.baidu.com/s/1DT62bPmMReyEzJYB7Gsj-A提取码:qkvr原创 2020-08-15 07:45:10 · 374 阅读 · 0 评论 -
FutureWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please im
FutureWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you ma原创 2020-06-18 17:43:41 · 1832 阅读 · 0 评论 -
module cv2.cv2 has no attribute xfeatures2d
图像拼接中出现错误:module cv2.cv2 has no attribute xfeatures2d安装contrib,安装之后出现另一错误:module cv2.cv2 has no attribute SIFT_CREAT。先卸载然后重新安装pip uninstall opencv-pythonpip uninstall opencv-contrib-pythonpip ins...原创 2020-04-09 10:44:11 · 473 阅读 · 0 评论 -
信用卡项目(唐老师)module myutils has no attribute sort contours问题
把课件里的myutils复制到同一个文件夹中原创 2020-03-26 10:51:30 · 2482 阅读 · 3 评论 -
信用卡项目the following arguments are required
昨天下午出现这个问题,到现在才解决。期间找过很多解决方法都不行例:在parameters中添加路径 -tC:\Users\ASUS\Desktop\Python Pratice\Picture\template.png-i C:\Users\ASUS\Desktop\Python Pratice\Picture\c1.png还是会出现报错:unrecognized arguments试过...原创 2020-03-26 10:16:39 · 2869 阅读 · 1 评论