- 博客(11)
- 资源 (13)
- 问答 (1)
- 收藏
- 关注
原创 python pandas tosql的时候“Incorrect string value: ‘\\xF0\\x9F\\x99\\x8F‘
今天想把pandas的csv里面的数据导入到数据库中,在导入的过程中有一些特殊字符,最终导致导入失败,错误码为:"Incorrect string value: '\\xF0\\x9F\\x99\\x8F'我的代码为:import pandas as pdfrom sqlalchemy import create_engineimport sqlalchemyimport globengine = create_engine('mysql+pymysql://username:pa
2020-07-31 10:10:33 794
原创 mac homebrew修改为国内的阿里源和中科院镜像
最近发现homebrew下载东西超级的慢,发现阿里的源很快,我这里分享一下我的修改过程:# 替换brew.git:cd "$(brew --repo)"git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git# 替换homebrew-core.git:cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin
2020-07-28 00:13:57 1518
原创 python 庖丁科技pdflux的表格解析(精度很高)
最近有个人叫我把印刷版的pdf解析一下,我试了腾讯,阿里,百度的方法,都不太行,后面发现创业公司庖丁科技对这方面优化得还可以,所以买了API,这里分享一下我的python实现。官网为:http://www.pdflux.com/上传文件到pdfluximport requests,jsonfrom Get_Token import encode_url""" 读取图片 """def get_file_content(filePath): with open(filePath, '
2020-07-26 09:49:35 2155 6
原创 ubuntu 命令行关掉visual studio code
今天ubuntu的图形界面被visual studio code搞卡了,想关掉它,界面关掉是不可能的了,所以只能用命令行,首先ssh登陆你的那台主机,然后运行:killall code是不是很简单参考文献[1].Kill vscode from the command line.https://stackoverflow.com/questions/52076242/kill-vscode-from-the-command-line...
2020-07-24 14:56:07 3564
原创 mac lightgbm Reason: image not found
今天在安装lightgbm的时候出现了下面的错误:Reason: image not found安装命令为: pip install lightgbm解决方法brew install lightgbm参考文献[1].LightGBM Image Not Found after Mac install.https://stackoverflow.com/questions/50889162/lightgbm-image-not-found-after-mac-instal.
2020-07-21 14:32:01 449
原创 python classification_report输出到csv文件
今天想把classification_report的统计结果输出到文件中,我这里分享一下一个简洁的方式:我的pandas版本:pandas 1.0.3代码:from sklearn.metrics import classification_reportreport = classification_report(y_test, y_pred, output_dict=True)df = pd.DataFrame(report).transpose
2020-07-20 10:46:55 3941 1
原创 python AttributeError: ‘SMOTE‘ object has no attribute ‘_validate_data‘
今天在跑树模型的时候用到了SMOTE,但是遇见了下面的错误:AttributeError: 'SMOTE' object has no attribute '_validate_data'好像是版本太低了,需要升级一下。但是升级了之后,sickitilearn又出现了错误:ModuleNotFoundError: No module named 'sklearn.externals.six'解决方法pip install imbalanced-learn==0.6pip inst
2020-07-15 10:29:05 4908 2
原创 python turtle画求逃生路线图
最近有个人要用turtle求生路线图,我这里画了一下,觉得挺烦的,不过最终还是画出来了。import turtle turtle.title('逃生路线')turtle.tracer(0) # Turns off screen updatesgrid = turtle.Turtle()STEP = 20LENGTH = 300split_num=15def draw_rectangle(width,height): for x in range(1, 5):
2020-07-10 09:49:33 1116 2
原创 python efficientdet AttributeError: module ‘gast‘ has no attribute ‘Num‘
今天在用efficientDet跑模型的时候,出现了下面的警告:WARNING:tensorflow:Entity <bound method RegressBoxes.call of <layers.RegressBoxes object at 0x7f41c3f35a90>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When
2020-07-05 09:41:30 1383
原创 python ModuleNotFoundError: No module named ‘frontend‘
今天在pdf转换为图片的时候,出现了下面的错误:➜ OCR_table python pdf_to_image.py Traceback (most recent call last): File "pdf_to_image.py", line 1, in <module> import sys, fitz File "/home/eric/anaconda3/lib/python3.6/site-packages/fitz/__init__.py", lin
2020-07-02 22:19:38 11653 6
原创 ubuntu 18.04安装horovod
今天在跑spellGCN的时候发现需要安装horovod,但是安装过程并不是很顺利,我这里分享一下我安装成功的方法:我的报错日志为: File "/home/wugaosheng/anaconda3/envs/ctc/lib/python3.6/site-packages/horovod/tensorflow/__init__.py", line 25, in <module> check_extension('horovod.tensorflow', 'HOROVOD_WIT
2020-07-01 14:29:52 2128 2
openfst-1.6.7.tar.gz
2020-05-06
RotateDemo.rar
2019-05-10
springboot getopenid demo
2019-03-13
pytorch 0.3.1 python3.6 CPU版本whl
2019-03-11
NUS-WIDE多标签分类数据集整理
2018-11-29
VGG_ILSVRC_16_layers_fc_reduced.h5
2018-11-07
Jetson-TX2 tensorflow-1.3.0-cp35-cp35m-linux_aarch64.whl
2017-12-25
bazel-0.6.1-dist.zip 下载
2017-11-15
Connectionist Temporal Classification: A Tutorial with Gritty Details
2017-09-14
TA创建的收藏夹 TA关注的收藏夹
TA关注的人