会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cup_leo
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
24
下一页
2023年5月10日
pandas 直接 计算 多列 两列
摘要: df[['neg','pos']] = (df.apply(lambda x:get_polarity_scores(x['Text']),axis=1)).apply(pd.Series)
阅读全文
posted @ 2023-05-10 16:42 cup_leo
阅读(58)
评论(0)
推荐(0)
2023年4月27日
使用easyocr识别图片文字(本地图片和网络图片)
摘要: from PIL import Image import requests from io import BytesIO import easyocr import numpy as np from pathlib import Path file_url = r'./img/1.jpg' # 需识
阅读全文
posted @ 2023-04-27 13:51 cup_leo
阅读(522)
评论(0)
推荐(0)
递归比较两个字典差异-python dict different
摘要: def findDiff(d1, d2, path=""): for k in d1: if (k not in d2): print (path, ":") print (k + " as key not in d2", "\n") else: if type(d1[k]) is dict: if
阅读全文
posted @ 2023-04-27 09:03 cup_leo
阅读(106)
评论(0)
推荐(0)
2023年4月12日
决策树可视化Graphviz中文乱码
摘要: 输出svg时中文显示正常!!! from six import StringIO #可视化 dot_data = StringIO() tree.export_graphviz(clf,out_file = dot_data,feature_names=feature_name, class_nam
阅读全文
posted @ 2023-04-12 14:50 cup_leo
阅读(216)
评论(0)
推荐(0)
2023年4月3日
jupyter 主题设置
摘要: 参考 :(63条消息) Jupyter Notebook设置黑色背景主题,字体大小,代码自动补全_jupyter黑色背景_极客阿宝的博客-CSDN博客 pip install jupyterthemes -i https://mirrors.aliyun.com/pypi/simple jt -t
阅读全文
posted @ 2023-04-03 14:36 cup_leo
阅读(98)
评论(0)
推荐(0)
2023年3月4日
pandas 每行是list文本 使用NLTK统计语料词频 nltk
摘要: def frequent_words(tdf,k): words = ' '.join(tdf['OriginalTweet'].apply(lambda x:' '.join(x)).values.flatten()).split(' ') freq = nltk.FreqDist(words)
阅读全文
posted @ 2023-03-04 09:24 cup_leo
阅读(22)
评论(0)
推荐(0)
2022年11月14日
python 双曲线 双坐标 上下X坐标轴 左右Y坐标轴
摘要: raw = [52.34, 52.85, 52.61, 52.77, 52.27, 53.13, 53.24, 52.98, 52.36, 53.57, 52.91, 53.21, 52.25, 52.24, 50.83, 50.63, 49.93, 47.62, 48.52, 48.4, 48.0
阅读全文
posted @ 2022-11-14 14:38 cup_leo
阅读(652)
评论(0)
推荐(0)
2022年11月1日
python 二维码检测-
摘要: 参考文章: 使用微信扫一扫二维码接口解密QRcode - 知乎 (zhihu.com) import cv2 import numpy as np import os def open_img(img_dir): img_list = [] for _,_,file_list in os.walk(
阅读全文
posted @ 2022-11-01 16:22 cup_leo
阅读(161)
评论(0)
推荐(0)
2022年10月16日
基于Python的19种假设检验实现
摘要: 基于Python的19种假设检验实现 - 知乎 (zhihu.com)
阅读全文
posted @ 2022-10-16 11:05 cup_leo
阅读(39)
评论(0)
推荐(0)
2022年10月9日
中文语义相似度匹配模型
摘要: zhaogaofeng611/TextMatch: 基于Pytorch的,中文语义相似度匹配模型(ABCNN、Albert、Bert、BIMPM、DecomposableAttention、DistilBert、ESIM、RE2、Roberta、SiaGRU、XlNet) (github.com)
阅读全文
posted @ 2022-10-09 13:31 cup_leo
阅读(148)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
24
下一页
公告