摘要:
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 阅读全文
摘要:
输出svg时中文显示正常!!! from six import StringIO #可视化 dot_data = StringIO() tree.export_graphviz(clf,out_file = dot_data,feature_names=feature_name, class_nam 阅读全文
摘要:
参考 :(63条消息) Jupyter Notebook设置黑色背景主题,字体大小,代码自动补全_jupyter黑色背景_极客阿宝的博客-CSDN博客 pip install jupyterthemes -i https://mirrors.aliyun.com/pypi/simple jt -t 阅读全文
摘要:
def frequent_words(tdf,k): words = ' '.join(tdf['OriginalTweet'].apply(lambda x:' '.join(x)).values.flatten()).split(' ') freq = nltk.FreqDist(words) 阅读全文
摘要:
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 阅读全文
摘要:
参考文章: 使用微信扫一扫二维码接口解密QRcode - 知乎 (zhihu.com) import cv2 import numpy as np import os def open_img(img_dir): img_list = [] for _,_,file_list in os.walk( 阅读全文
摘要:
基于Python的19种假设检验实现 - 知乎 (zhihu.com) 阅读全文
摘要:
zhaogaofeng611/TextMatch: 基于Pytorch的,中文语义相似度匹配模型(ABCNN、Albert、Bert、BIMPM、DecomposableAttention、DistilBert、ESIM、RE2、Roberta、SiaGRU、XlNet) (github.com) 阅读全文