ModulenotFoundError:NO模块名为' dbn'错误

发布于 2025-01-22 19:47:01 字数 339 浏览 2 评论 0原文

from sklearn.model_selection import train_test_split
from dbn.tensorflow import SupervisedDBNClassification
import numpy as np
import pandas as pd
from sklearn.metrics.classification import accuracy_score


ModuleNotFoundError: No module named 'dbn    

当我尝试使用深信网络对恶意软件数据集进行分类时,我会收到此错误 我尝试了一切,但我无法修复

from sklearn.model_selection import train_test_split
from dbn.tensorflow import SupervisedDBNClassification
import numpy as np
import pandas as pd
from sklearn.metrics.classification import accuracy_score


ModuleNotFoundError: No module named 'dbn    

When I try sorting malware dataset with using Deep belief network I get this error
I try everything but i can't fix it

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

佞臣 2025-01-29 19:47:01

一种解决方案是git克隆回购,输入文件夹,安装要求并在文件夹中运行代码:

git clone https://github.com/albertbup/deep-belief-network.git
cd deep-belief-network
pip install -r requirements.txt
python3 543026528.py

dbn是深belief-network文件夹中的文件夹

One solution is to git clone the repo, enter the folder, install requirements and run your code inside the folder:

git clone https://github.com/albertbup/deep-belief-network.git
cd deep-belief-network
pip install -r requirements.txt
python3 543026528.py

dbn is a folder inside the deep-belief-network folder

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文