git的目标之一是分散.如果Github是git的中心,那么也许它可以考虑到其他集线器,并允许拉取请求发生在github 上没有托管的git URL 上.
该文件是关于这个相当明确:拉请求需要你有一个Github上的帐户,你fork一个仓库在github上.这是一个真正的当前技术限制还是有办法在Github上解决这个问题?
如果没有,是否最终计划允许Github的"拉取请求"工具实际上允许从Github筒仓之外的存储库中提取?
首先,我必须承认我的统计知识充其量是生锈的:即使它刚刚崭露头角,也不是我特别喜欢的学科,这意味着我很难理解它。
不过,我看了一下柱状图如何计算误差线,并惊讶地发现使用“置信区间”(CI)代替(更常见的)标准偏差。对更多CI的研究使我想到了这篇Wikipedia文章,该文章似乎说,基本上,CI的计算公式为:
或者,使用伪代码:
def ci_wp(a):
"""calculate confidence interval using Wikipedia's formula"""
m = np.mean(a)
s = 1.96*np.std(a)/np.sqrt(len(a))
return m - s, m + s
Run Code Online (Sandbox Code Playgroud)
但是我们在seaborn / utils.py中发现的是:
def ci(a, which=95, axis=None):
"""Return a percentile range from an array of values."""
p = 50 - which / 2, 50 + which / 2
return percentiles(a, p, axis)
Run Code Online (Sandbox Code Playgroud)
现在也许我完全错过了,但是这似乎与Wikipedia提出的计算完全不同。谁能解释这个差异?
再举一个例子,从评论中,我们为什么在以下情况之间得到如此不同的结果:
>>> sb.utils.ci(np.arange(100))
array([ 2.475, 96.525])
>>> ci_wp(np.arange(100))
[43.842250270646467,55.157749729353533]
Run Code Online (Sandbox Code Playgroud)
并与其他统计工具进行比较:
def ci_std(a):
"""calculate margin of …
Run Code Online (Sandbox Code Playgroud) 为什么py.test
在TestFoo.test_foo()
那里进行测试?我知道它运行TestBar.test_foo()
。
内容test_foo.py
:
import unittest
class TestFoo(unittest.TestCase):
def test_foo(self):
print "in test_foo"
Run Code Online (Sandbox Code Playgroud)
内容test_bar.py
:
from test_foo import TestFoo
class TestBar(TestFoo):
def test_bar(self):
print "in test_bar"
Run Code Online (Sandbox Code Playgroud)
输出:
[999]anarcat@marcos:t$ pytest -v
no test dir found testing here: /tmp/t
=========================== test_bar.py ============================
test_bar (test_bar.TestBar) ... in test_bar
ok
test_foo (test_bar.TestBar) ... in test_foo
ok
test_foo (test_foo.TestFoo) ... in test_foo
ok
=========================== test_foo.py ============================
test_foo (test_foo.TestFoo) ... in test_foo
ok
*******************************************************************************
Ran 4 test cases in …
Run Code Online (Sandbox Code Playgroud) 为什么git status
和相关工具将文件名中的unicode视为二进制文件?
[991]anarcat@marcos:test$ git init foo
Dépôt Git vide initialisé dans /home/anarcat/test/foo/.git/
[992]anarcat@marcos:test$ cd foo
[993]anarcat@marcos:foo$ touch hé
[994]anarcat@marcos:foo$ git add hé
[996]anarcat@marcos:foo$ git status --porcelain
A "h\303\251"
Run Code Online (Sandbox Code Playgroud)
我希望这是:
A hé
Run Code Online (Sandbox Code Playgroud)
git处理文件内容中的重音和unicode ,为什么文件名特殊?
python ×2
boxplot ×1
dvcs ×1
git ×1
github ×1
matplotlib ×1
pull ×1
pull-request ×1
pytest ×1
seaborn ×1
unicode ×1
unit-testing ×1