![](https://img-blog.csdnimg.cn/20190918135101160.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
报错及技巧汇总
报错及技巧汇总
you_are_my_sunshine*
这个作者很懒,什么都没留下…
展开
-
解决方案:SQL用distinct进行去重,用Pandas如何实现
解决方案:SQL用distinct进行去重,用Pandas如何实现原创 2024-05-11 17:36:15 · 258 阅读 · 1 评论 -
解决方案:对数据进行负采样随机抽取1000W,用Pandas如何实现
解决方案:对数据进行负采样随机抽取1000W,用Pandas如何实现原创 2024-05-11 16:48:48 · 256 阅读 · 1 评论 -
解决方案:sql里的join跟left join有什么区别
解决方案:sql里的join跟left join有什么区别原创 2024-05-11 16:23:41 · 528 阅读 · 0 评论 -
解决方案:‘Series‘ object has no attribute ‘xxxx‘
解决方案:'Series' object has no attribute 'xxxx'原创 2024-05-09 20:07:53 · 325 阅读 · 0 评论 -
解决方案:pos_label=1 is not a valid label. It should be one of [‘0‘, ‘1‘]
解决问题:pos_label=1 is not a valid label. It should be one of ['0', '1']原创 2024-04-27 17:53:25 · 412 阅读 · 0 评论 -
解决方案:TypeError:unsupported operand type(s) for -: ‘float‘ and ‘decimal.Decimal‘
解决问题:TypeError:unsupported operand type(s) for -: 'float' and 'decimal.Decimal'原创 2024-04-26 22:15:00 · 398 阅读 · 0 评论 -
解决方案:Cloning into ‘v0.2.7‘... fatal: repository ‘https://github.com/chatchat-space/...‘ not found
解决问题:Cloning into 'v0.2.7'... fatal: repository 'https://github.com/chatchat-space/...' not found原创 2024-04-23 20:00:00 · 346 阅读 · 0 评论 -
解决方案:如何理解(i, j) for i in range(row) for j in range(col) if grid[i][j] == 2
解决方案:如何理解(i, j) for i in range(row) for j in range(col) if grid[i][j] == 2原创 2024-04-22 00:00:00 · 295 阅读 · 0 评论 -
解决方案:Pandas如何用np.where将值分成两类,及处理异常值更新数据
解决方案:Pandas如何用np.where将值分成两类,及处理异常值更新数据原创 2024-04-19 19:43:47 · 218 阅读 · 0 评论 -
解决方案:用决策树算法如何生成决策树图及生成SQL规则
解决方案:用决策树算法如何生成决策树图及生成SQL规则原创 2024-04-19 19:28:10 · 890 阅读 · 0 评论 -
解决方案:Pandas如何多条件筛选数据
解决方案:Pandas如何多条件筛选数据原创 2024-04-19 18:57:22 · 307 阅读 · 0 评论 -
解决方案:若dt分区查询时间范围有限的情况下,如何找到该用户在app首次访问时间
解决方案:若dt分区查询时间范围有限的情况下,如何找到该用户在app首次访问时间原创 2024-04-18 19:52:15 · 165 阅读 · 0 评论 -
解决方案:用户号出现多行,如何从中取其一并随机抽取100个用户号
解决方案:用户号出现多行,如何从中取其一并随机抽取100个用户号原创 2024-04-18 19:23:56 · 314 阅读 · 0 评论 -
解决方案ImportError: cannot import name ‘BertTokenizerFast‘ from ‘transformers‘
解决方案ImportError: cannot import name 'BertTokenizerFast' from 'transformers'原创 2024-04-15 00:15:00 · 615 阅读 · 0 评论 -
解决方案IndexError: index out of range in self
解决方案IndexError: index out of range in self原创 2024-04-10 06:00:00 · 402 阅读 · 0 评论 -
解决方案TypeError: Cannot interpret ‘<attribute ‘dtype‘ of ‘numpy.generic‘ objects>‘ as a data type
解决方案TypeError: Cannot interpret ‘<attribute ‘dtype‘ of ‘numpy.generic‘ objects>‘ as a data type原创 2024-04-10 00:00:00 · 285 阅读 · 0 评论 -
解决方案RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available()
解决方案RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.原创 2024-04-09 08:00:00 · 1117 阅读 · 2 评论 -
解决方案Script file ‘D:\Anaconda3\Scripts\pip-script.py‘ is not present
解决方案Script file 'D:\Anaconda3\Scripts\pip-script.py' is not present原创 2024-04-09 00:00:00 · 370 阅读 · 0 评论 -
解决方案AssertionError: Torch not compiled with CUDA enabled
解决方案AssertionError: Torch not compiled with CUDA enabled原创 2024-04-08 06:00:00 · 477 阅读 · 0 评论 -
解决方案No module named ‘pyahocorasick‘、Requirement already satisfied: pyahocorasick in d:\anaconda3...
解决方案No module named 'pyahocorasick'、Requirement already satisfied: pyahocorasick in d:\anaconda3...原创 2024-04-08 00:00:00 · 424 阅读 · 2 评论 -
启用jupyter notebook,抛出ImportError: cannot import name ‘soft_unicode‘ from ‘markupsafe‘
启用jupyter notebook,抛出ImportError: cannot import name ‘soft_unicode‘ from ‘markupsafe‘原创 2024-04-06 17:58:36 · 1163 阅读 · 1 评论 -
解决方案Please use Oracle(R) Java(TM) 11, OpenJDK(TM) 11 to run Neo4j.
解决方案Please use Oracle(R) Java(TM) 11, OpenJDK(TM) 11 to run Neo4j.原创 2024-03-24 17:26:33 · 1012 阅读 · 0 评论 -
解决方案 Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure
解决方案Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure原创 2024-03-24 17:11:43 · 1304 阅读 · 0 评论 -
解决方案:如何安装neo4j软件
解决方案:如何安装neo4j软件原创 2024-03-24 17:03:02 · 252 阅读 · 0 评论 -
如何正确从github上下载数据集等内容
如何正确从github上下载数据集等内容原创 2024-03-19 00:07:45 · 1838 阅读 · 0 评论 -
解决方案RuntimeError: CUDA out of memory
解决方案RuntimeError: CUDA out of memory原创 2024-03-12 06:00:00 · 472 阅读 · 0 评论 -
解决方案TypeError: string indices must be integers
解决方案TypeError: string indices must be integers原创 2024-03-08 20:15:15 · 1056 阅读 · 0 评论 -
解决方案TypeError: register_buffer() got an unexpected keyword argument ‘persistent‘
解决方案TypeError: register_buffer() got an unexpected keyword argument 'persistent'原创 2024-03-07 20:41:18 · 507 阅读 · 0 评论 -
w2v参数报错_TypeError: init() got an unexpected keyword argument ‘size‘
w2v参数报错_TypeError: init() got an unexpected keyword argument 'size'原创 2024-03-05 19:20:44 · 468 阅读 · 0 评论 -
字典不能用to_pickle存储数据,得用dump存储数据
字典不能用to_pickle存储数据,得用dump存储数据原创 2024-02-25 18:06:19 · 412 阅读 · 0 评论 -
正确安装faiss包
正确安装faiss包原创 2024-02-25 17:56:15 · 2521 阅读 · 7 评论 -
Matplotlib_plt.subplots 遇见中文乱码解决方案
Matplotlib_plt.subplots 遇见中文乱码解决方案原创 2023-12-29 00:30:00 · 628 阅读 · 0 评论 -
MemoryError: Unable to allocate 505. MiB for an array with shape (8, 8276471) and data type int64
MemoryError: Unable to allocate 505. MiB for an array with shape (8, 8276471) and data type int64原创 2023-12-27 00:00:00 · 504 阅读 · 0 评论 -
raise KeyError(key) from err KeyError: ‘sex‘
raise KeyError(key) from err KeyError: 'sex'原创 2023-12-17 18:08:50 · 902 阅读 · 0 评论 -
Early stopping conditioned on metric `val_auc` which is not available,tf版本从原先2.0升级到2.3即可解决问题
Early stopping conditioned on metric `val_auc` which is not available,tf版本从原先2.0升级到2.3即可解决问题原创 2023-12-24 00:00:00 · 297 阅读 · 0 评论 -
The ‘sklearn‘ PyPI package is deprecated, use ‘scikit-learn‘ rather than ‘sklearn‘ far pip commands.
The 'sklearn' PyPI package is deprecated, use 'scikit-learn' rather than 'sklearn' far pip commands.原创 2023-12-23 15:26:57 · 1704 阅读 · 0 评论 -
matplotlib无法显示图片
matplotlib无法显示图片原创 2023-12-26 00:00:00 · 614 阅读 · 0 评论