机器学习写代码时遇到的问题(23.11.9)

AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'

导包的时候改一下

python 复制代码
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt

UserWarning: Glyph 27425 (\N{CJK UNIFIED IDEOGRAPH-6B21}) missing from current font. func(*args)

显示中文出问题

python 复制代码
# 汉字字体,优先使用楷体,找不到则使用黑体
plt.rcParams['font.sans-serif'] = ['Kaitt', 'SimHei']  

ImportError: `iplot` can only run inside an IPython Notebook.

pip install ipython

ValueError: Mime type rendering requires nbformat>=4.2.0 but it is not installed

使用iplot出错

复制代码
plotly.offline.iplot(plot_figure)

更新库:

python 复制代码
pip install --upgrade nbformat
相关推荐
格林威1 分钟前
基于轮廓特征的工件分类识别:实现无模板快速分拣的 8 个核心算法,附 OpenCV+Halcon 实战代码!
人工智能·数码相机·opencv·算法·目标跟踪·分类·数据挖掘
村口曹大爷3 分钟前
Aider-TUI: The Professional AI Pair Programming Shell
人工智能·ai·code·aider
乾元3 分钟前
10 个可复制的企业级项目:从需求到交付的 AI 网络工程模板(深度实战版)
运维·网络·人工智能·网络协议·安全
深圳南柯电子5 分钟前
南柯电子|EMI测试系统:5G时代新挑战,如何护航全行业电磁兼容
人工智能·汽车·互联网·实验室·emc
linmoo19867 分钟前
Langchain4j 系列之十九 - RAG之Retrieval
人工智能·langchain·retrieval·rag·langchain4j
沛沛老爹7 分钟前
Web开发者突围AI战场:Agent Skills元工具性能优化实战指南——像优化Spring Boot一样提升AI吞吐量
java·开发语言·人工智能·spring boot·性能优化·架构·企业开发
MM_MS10 分钟前
Halcon小案例--->路由器散热口个数(两种方法)
人工智能·算法·目标检测·计算机视觉·视觉检测·智能路由器·视觉
SelectDB技术团队11 分钟前
驾驭 CPU 与编译器:Apache Doris 实现极致性能的底层逻辑
数据库·数据仓库·人工智能·sql·apache
没学上了18 分钟前
Vlm-BERT简介
人工智能·深度学习·bert
独自破碎E19 分钟前
怎么实现AI的多轮对话功能?
人工智能