相关疑难解决方法(0)

如何在PyBrain中进行有监督的深度信仰训练?

我无法让DeepBeliefTrainer在PyBrain/Python中处理我的数据.由于我无法找到除了无人监督如何在PyBrain中使用深度学习之外的任何示例,我希望有人可以提供一些示例来展示使用的基本概念.

我试图初始化使用:

epochs = 100
layerDims = [768,100,100,1]

net = buildNetwork(*layerDims)
dataset = self.dataset
trainer = DeepBeliefTrainer(net, dataset=dataSet)
trainer.trainEpochs(epochs)
Run Code Online (Sandbox Code Playgroud)

我尝试使用SupervisedDataset进行回归,但训练失败了.有没有人成功使用deeplearning教练进行有监督的机器学习?你是怎么做到的?

我得到的错误:

File "/Library/Python/2.7/site-packages/PyBrain-0.3.1-py2.7.egg/pybrain/structure/networks/rbm.py", line 39, in __init__
self.con = self.net.connections[self.visible][0]
KeyError: None
Run Code Online (Sandbox Code Playgroud)

python machine-learning neural-network pybrain dbn

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

标签 统计

dbn ×1

machine-learning ×1

neural-network ×1

pybrain ×1

python ×1