Python中文
首页
教程
问答
标签
搜索
登录
注册
使用pyBrain _splitWithPortion时出现的AttributeError - 对象类型是否已更改?
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我按照基本分类教程<a href="http://pybrain.org/docs/tutorial/<a href="https://www.cnpython.com/pypi/dataset" class="inner-link">dataset</a>s.html#classificationdataset">here</a>测试pybrain,并用一些更真实的数据<a href="http://corpocrat.com/2014/10/10/tutorial-pybrain-neural-network-for-classifying-olivetti-faces/">here</a>对其进行不同的理解。但是,我在应用trnda.\u convertToOneOfMany()时收到此错误,错误为:</p> <pre><code>AttributeError: 'SupervisedDataSet' object has no attribute '_convertToOneOfMany </code></pre> <p>数据集创建为classification.ClassificationDataSet对象,但是调用splitWithProportion似乎会改变它监管数据集对象,所以作为Python的新手,这个错误看起来并不像监管数据集没有那种方法,classification.ClassificationDataSet做。<a href="https://github.com/pybrain/pybrain/blob/master/pybrain/datasets/classification.py">Code here</a>。在</p> <p>然而,同样的代码在如此多的教程中被使用,我觉得我一定是遗漏了一些东西,因为很多人都有它的工作。我研究了github上对代码库的更改,但是没有任何关于这个函数的内容,我也尝试过在python3vs2.7下运行,但是没有什么不同。如果有人能帮我回到正确的道路上,我将不胜感激。在</p> ^{pr2}$
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>我有同样的问题,我想我已经解决了:看这个<a href="https://github.com/pybrain/pybrain/pull/164" rel="nofollow">pull request</a>。在</p> <p>(Python2.7.6,PyBrain 0.3.3,OS X 10.9.5)</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何添加虚拟方法
2 回答
如何添加表示整数的擦边字符串?
4 回答
如何添加要在Bokeh中使用的新font.ttf文件?
6 回答
如何添加要显示的矩阵XY轴编号和XY轴
5 回答
如何添加计数?
5 回答
如何添加计数器函数?
10 回答
如何添加计数器列来计算数据帧中另一列中的特定值?
7 回答
如何添加计数器来跟踪while循环中的月份和年份?
3 回答
如何添加计数并删除countplot的顶部和右侧脊椎?
7 回答
如何添加计时器wx.应用程序更新窗口对象的主循环?
1 回答
如何添加评论到帖子?PostDetailVew,Django 2.1.5
10 回答
如何添加评论拉梅尔亚姆
3 回答
如何添加诸如矩阵Python/Pandas之类的数据帧?
2 回答
如何添加谷歌地点自动完成到Flask?
2 回答
如何添加超时、python discord bot
3 回答
如何添加超过1dp的检查
6 回答
如何添加距离方法
6 回答
如何添加跟随游戏的敌人精灵
4 回答
如何添加路径以便python可以找到程序?
9 回答
如何添加身份验证/安全性以使用happybase访问HBase?
1 回答