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
当我尝试使用深度信念网络排序恶意软件数据集时,我得到了这个错误
一个解决方案是git克隆repo,输入文件夹,安装需求并在文件夹中运行代码:
git clone https://github.com/albertbup/deep-belief-network.git
cd deep-belief-network
pip install -r requirements.txt
python3 543026528.py
dbn是deep-belief-network文件夹中的一个文件夹