
警告与报错
Ace Cheney
这个作者很懒,什么都没留下…
展开
-
module ‘scipy.misc‘ has no attribute ‘imresize‘
报错AttributeError: module 'scipy.misc' has no attribute 'imresize'解决方法使用skimage库conda install scikit-image 代码修改from skimage import transform......# img = np.float32(scipy.misc.imresize(img, ratio))img = transform.resize(img,(int(img.shape[0]*rat原创 2021-05-31 02:00:42 · 1161 阅读 · 0 评论 -
module ‘scipy.misc‘ has no attribute ‘toimage‘
报错信息scipy.misc.toimage(img_array).save(img_name)AttributeError: module 'scipy.misc' has no attribute 'toimage'解决方案1. 降低scipy版本:$ pip uninstall scipy$ pip install scipy==1.2.02. 使用keras包pip install keras#或者conda install keras代码修改:from keras.p原创 2021-05-31 01:40:15 · 990 阅读 · 0 评论 -
AttributeError: module ‘arff‘ has no attribute ‘DENSE‘
解决方法:卸载arff包:pip uninstall arff安装liac-arff包pip install liac-arff原创 2021-03-22 11:40:56 · 761 阅读 · 1 评论 -
* Not all rows (distributions) in doc_topic_dists sum to 1.
问题描述:在使用gensim的HDP进行主题聚类并尝试通过PyLDAVIS进行可视化时报错代码:from gensim.models import HdpModelen_hdp = HdpModel(en_corpus, en_dictionary, chunksize=5000)import pyLDAvisimport pyLDAvis.gensimpyLDAvis.enable_notebook()vis = pyLDAvis.gensim.prepare(en_hdp, en_co原创 2021-01-30 18:26:04 · 1505 阅读 · 3 评论 -
import geatpy 报错以及geatpy安装报错问题总结
情况一Traceback (most recent call last): File "Untitled 5.py", line 1, in <module> import geatpy as ea File "/anaconda3/lib/python3.7/site-packages/geatpy-2.1.0-py3.7.egg/geatpy/__init__.p...原创 2019-07-29 19:20:42 · 8310 阅读 · 4 评论 -
MPI并行计算中 -bash: mpigxx: command not found解决方法
解决方法:将mpigxx指令换成mpic++指令即可MPI并行计算编译总结串行C程序:编译: gcc -o 输出文件名 编译文件名.c运行:./输出文件名串行C++程序:编译: g++ -o 输出文件名 编译文件名.cpp运行:./输出文件名并行C程序编译:mpicc -o 输出文件名 编译文件名.c运行方式1:./输出文件名 (只调用一个cpu,相当于串行运行)运行...原创 2019-06-05 23:47:42 · 7628 阅读 · 1 评论 -
`should_run_async` will not call `transform_cell` automatically in the future. Please pass the resul
警告:/opt/anaconda3/lib/python3.8/site-packages/ipykernel/ipkernel.py:287: DeprecationWarning:`should_run_async` will not call `transform_cell` automatically in the future. Please pass the result to `transformed_cell` argument and any exception that happe原创 2021-01-28 20:12:08 · 4776 阅读 · 3 评论