小编Bul*_*aud的帖子

jupyter ModuleNotFoundError:没有名为 matplotlib 的模块

我目前正在尝试使用基本的 python - jupyter 项目。

我在 matplotlib 期间遇到以下错误:

jupyter 错误截图 在此处输入图片说明

ModuleNotFoundError: 没有名为“ matplotlib ”的模块

我尝试在 conda 和 pip 中更新、重新安装 matplotlib,但它仍然无法正常工作。

对每一个建设性的反馈感到高兴

python matplotlib conda jupyter

24
推荐指数
4
解决办法
4万
查看次数

如何在 Plotly 中显示桑基图流的值而不悬停

是否可以显示桑基图的所有流的值而不将鼠标悬停在其上?

在此输入图像描述

python plotly sankey-diagram

5
推荐指数
0
解决办法
607
查看次数

访问预训练 DistilBERT 模型多层的输出

我正在尝试从预训练的“DistilBERT”模型的几个不同层访问输出嵌入。(“distilbert-base-uncased”)

bert_output = model(input_ids, attention_mask=attention_mask)
Run Code Online (Sandbox Code Playgroud)

bert_output 似乎只返回输入标记最后一层的嵌入值。

python nlp pytorch bert-language-model huggingface-transformers

1
推荐指数
1
解决办法
969
查看次数