胡家伙,
我是python/anaconda/jupyter/numPy,熊猫等的新手....所以请原谅我这是一个非常愚蠢的问题.我正在尝试使用anaconda/jupyter获取MNIST数据库.但每次我在最后得到一个HTTP错误500.它真的是一个服务器问题(500意味着)或我做错了什么?
输入jupyter:
from sklearn.datasets import fetch_mldata
mnist = fetch_mldata('MNIST original')
Run Code Online (Sandbox Code Playgroud)
结果:
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
<ipython-input-1-15dc285fb373> in <module>()
1 from sklearn.datasets import fetch_mldata
----> 2 mnist = fetch_mldata('MNIST original')
e:\ProgramData\Anaconda3\lib\site-packages\sklearn\datasets\mldata.py in fetch_mldata(dataname, target_name, data_name, transpose_data, data_home)
140 urlname = MLDATA_BASE_URL % quote(dataname)
141 try:
--> 142 mldata_url = urlopen(urlname)
143 except HTTPError as e:
144 if e.code == 404:
e:\ProgramData\Anaconda3\lib\urllib\request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context)
221 else:
222 opener = _opener
--> 223 …Run Code Online (Sandbox Code Playgroud) 我有关于的内容paper-tab.有没有办法设计它们以便在每个标签中获得两行内容?回到过去,我会创建两个div, then used:: shadow .tab-content to apply aflex-direction:column``但现在::shadow已弃用...我已尝试将其替换为chromestatus平台上建议的完整选择器:
paper-tabs.tabs paper-tab #shadow-root div.tab-content
{
flex-direction: column;
}
Run Code Online (Sandbox Code Playgroud)
但它也不起作用.
我尝试过使用mixin style is="custom-style"
.tabs{
--paper-tab-content: {flex-direction: column;};
}
Run Code Online (Sandbox Code Playgroud)
也不起作用
有任何想法吗?
每当我尝试使用 bin/console make:entity 创建实体时,都会得到以下结果:
php bin/console make:entity
Class name of the entity to create or update (e.g. FierceElephant):
> Video
In DebugClassLoader.php line 337:
Warning: include(/home/user/work/project1/vendor/composer/../../src/Entity/Video.php): failed to open stream: No such file or directory
Run Code Online (Sandbox Code Playgroud)
这个项目很新,目前代码很少;这是我尝试在项目中创建的第一个实体。我不明白为什么我会得到这个,因为很明显该文件不存在,因为我想创建它......我在谷歌上没有发现类似的问题。也许我忘了激活一个 php 扩展?
任何的想法?
我试图在另一个中使用一个函数,但即使我事先声明它,聚合物说它不是.我不明白.任何线索?
Polymer({
is: 'x-foo',
//some other code here, including the properties....
computeRange: function (offset, limit, nodeRangeStart, nodeRangeEnd) {
nodeRangeStart.innerText = offset;
nodeRangeEnd.innerText = offset + limit;
},
prevPage: function () {
this.offset = this.offset - this.limit;
computeRange(this.offset, this.limit, this.$.usersListRangeStart, this.$.usersListRangeEnd);
this.$.nextPage.removeAttribute('disabled');
if (this.offset <= 0) {
this.$.prevPage.setAttribute('disabled', true);
this.$.prevPage.style.color = '#DDDDDD';
};
}
});
Run Code Online (Sandbox Code Playgroud)
和控制台:
未捕获的ReferenceError:未定义computeRange
polymer ×2
anaconda ×1
console ×1
css ×1
declaration ×1
entity ×1
function ×1
jupyter ×1
php ×1
scikit-learn ×1
shadow-dom ×1
symfony ×1