![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
项目
每个人都是一颗星球
这个作者很懒,什么都没留下…
展开
-
气井时序预测
1.高频数据进行降维2.高频数据的滚动方差进行降维原创 2021-05-26 10:42:40 · 150 阅读 · 0 评论 -
torch.tensor的使用
import torcha =[[[1], [2], [3]], [[4], [5], [6]]]a = torch.tensor(a)print(a.shape)print(len(a))结果:torch.Size([2, 3, 1])2其中[2, 3, 1]分别依次对应从内到里的括号里面的数据个数:231原创 2021-02-25 10:12:35 · 619 阅读 · 0 评论 -
python项目打包
使用pyinstaller --hidden-import=pkg_resources -F main.py对程序入口进行打包问题:没有找到文件,查看对应位置:观察文件结构:更改代码为:原创 2021-02-16 20:38:10 · 229 阅读 · 4 评论 -
鼠标点击位置,绘制轮廓 qt
1.鼠标点击绘制矩形框from PyQt5.QtWidgets import QWidget, QApplication, QLabelfrom PyQt5.QtCore import QRect, Qtfrom PyQt5.QtGui import QImage, QPixmap, QPainter, QPen, QGuiApplicationimport cv2import sysclass MyLabel(QLabel): x0 = 0 y0 = 0 x1原创 2020-12-24 17:15:11 · 420 阅读 · 2 评论 -
2020-10-21
一个简单的KNN算法,数据已上传数据文件:https://download.csdn.net/download/weixin_39731450/12998036代码:import csvimport randomwith open('prostate-cancer\Prostate_Cancer.csv', 'r')as file: read = csv.DictReader(file) datas = [row for row in read]# 数据随机打乱random.shu原创 2020-10-21 17:00:40 · 191 阅读 · 0 评论 -
labelme创建多边形
def mousePressEvent(self, ev): if QT5: pos = self.transformPos(ev.localPos()) else: pos = self.transformPos(ev.posF()) if ev.button() == QtCore.Qt.LeftButton: if self.drawing(): ...原创 2020-09-09 17:20:14 · 768 阅读 · 0 评论