135 karma · joined May 9, 2013 (13y ago) · 55 submissions
comment 12y ago · link · parent
Citing software really varies by community. It is very consistently done in some communities, and is gaining broader acceptance in others, some with surprising rapidity (ecology comes to mind).
It's an exciting time to be a scientist!
comment 12y ago · link · parent
comment 12y ago · link · parent
Up until now, there have been many places to permanently store your public scientific research objects, so long as you were willing to use a Creative Commons license. Similarly, there were many places to freely host your software, so long as you didn't need a permanent store for your scientific code.
The GitHub-ZENODO partnership is the first web application to bridge these two needs. An earlier attempt with Figshare almost got it right, but failed to support code licenses (everything at Figshare is CC BY). This isn't the only way to host or cite your code, but it's definitely a good default.
comment 12y ago · link · parent
comment 12y ago · link · parent
Systems Developer, CycleTel
Are you passionate about using technology to create social impact? Do you operate well in start-up environments, building new ideas and strategies from scratch? Do you want to be part of a social enterprise that is positioned to change lives in India? This is your chance to join and shape a fast growing, mobile health (mHealth) service at a critical inflection point.
CycleTel is an mHealth innovation, developed and tested in India, that is positioned to be the first ever family planning method offered via SMS. No doctors, no visits to the health clinic—CycleTel puts family planning knowledge and use in the hands of couples, on their mobile devices. Based on the Standard Days Method (SDM) of family planning, the service has the potential to aid millions of women in India who have access to a mobile phone.
CycleTel seeks a passionate and skilled developer to lead development and administration of our SMS-based solution in India. The candidate will have an exceptional track record in software, preferably with experience in building and maintaining mobile systems services in India.
CycleTel is an initiative developed and incubated by Georgetown University’s Institute for Reproductive Health (IRH) in Washington, DC. IRH works to reduce unmet need for family planning by increasing fertility awareness and expanding access to family planning methods.
As a Systems Developer, you will help us improve, deploy and maintain our SMS-based solution. You will help us expand our reach within India and globally by adding multi-language support to our existing English/ Hinglish-based code. You will also help us expand by leading the development and integration of our application with technical partners. The System Developer will be part of the CycleTel team in India, and work in a focused team, reporting to our India CycleTel Manager, based in Delhi.
Please send cover letter and CV to the CycleTel team at charu.chadha.irh@gmail.com,
comment 12y ago · link · parent
As an example, if you'd like to build a Nix system, you're going to need to compile or download an independent libc. HashDist is capable of bootstrapping an independent libc as well, but we default to using the system libc.
We choose to seat our "pure" system on top of the system compilers and libc, but by default, install our own Python and other high-level libraries. We also can integrate with other package managers, and there's an example branch in our repository right now showing integration with Homebrew.
comment 12y ago · link · parent
It's a good write-up. The idea of a stateless, functional, package management system is really important in places like scientific computing, where we have many pieces of software, relatively little funding to improve the quality of the software, and still need to ensure that all components can be built and easily swapped for each other.
The HashDist developers (still in early beta: https://github.com/hashdist/hashdist ) inherited a few ideas from Nix, including the idea of prefix builds. The thing about HashDist is that you can actually install it in userspace over any UNIXy system (for now, Cygwin, OS X, and Linux), and get the exact software configuration that somebody else was using across a different architecture.
comment 13y ago · link · parent
comment 13y ago · link · parent
The C was compiled with the same flags used to compile Python. In this case: -O2 -g.
I don't have access to a MATLAB license to compare, but I would love to see this comparison done. Let me know if you need any help putting it together.
comment 13y ago · link · parent
comment 13y ago · link · parent
- It's really hard to make valid comparisons against data I don't have access to. Do you have any open data sets to try this comparison against?
- It looks like the meat of the work is being done here by scikit-learn. As was mentioned earlier, Numba at this stage is mostly useful for improving kernel performance, not large library routines.
I'm planning on taking a deeper look into some of the scikit-learn kernels in the future. Keep an eye open for a blog post from Continuum on this.
comment 13y ago · link · parent
The numba code isn't as pretty as it could be because slicing doesn't work for overlapping memory regions or wraparound indexing yet, and we don't have inlining :(
Here's what I get on a 2.6 GhZ Intel Core i7.
I rewrote your code to minimize memory traffic, then jitted it with numba:
def usr_numba(x, y, S, num_best):
m, n = x.shape
best = np.zeros(num_best)
best_low = 0.0
for i in xrange(m):
d = abs(x[i,0]-y[0])
for j in xrange(1,n):
d += abs(x[i,j] - y[j])
d = 1.0 / (1.0 + 1/12.0 *d)
if d > best_low and d > S:
k = 0
for k in xrange(0,num_best):
if d > best[k]:
break
for l in xrange(num_best-1, k, -1):
best[l] = best[l-1]
best[k] = d
best_low = best[num_best-1]
return best
_usr = autojit()(usr_numba)
In [1]: import numba_usr
jitted kernel checks out
N = 1000000
usr (s): 0.233645
numba (s): 0.0115586
20X speedup
N = 2000000
usr (s): 0.566954
numba (s): 0.023487
24X speedup
N = 4000000
usr (s): 1.14992
numba (s): 0.0472016
24X speedup
N = 8000000
usr (s): 2.34968
numba (s): 0.092601
25X speedup
N = 10000000
usr (s): 2.96395
numba (s): 0.116032
26X speedup
N = 20000000
usr (s): 17.4779
numba (s): 0.236304
74X speedup
For the case aschreyer is interested in, I see a 24x speedup from half a second to two hundredths of a second. For a really big problem (2 x 10^7), numba is still well under a second and the numpy code is starting to really suffer.My full code is here: https://gist.github.com/ahmadia/5550933
I'm putting it into a wakari notebook so you can actually check me on this :)
Edit 1 - Made the speedup a little more comprehensible (and fixed gist)
comment 13y ago · link · parent
In general, we're looking for results that will get people excited, and in some communities, we can get fairly silly speedups over native Python, so we are still picking that low-hanging fruit.
However, it's also important to be tied in to real applications. I'd be happy to take a crack at applying numba to your code. Do you have a reasonably small example we could take a look at?