Better HN
topnewbestaskshowjobs
Log inSign up

improbable22

677 karma · joined Jan 8, 2017 (9y ago) · 329 submissions

Submissions

comment 8y ago · link · parent

I get that. It explains why the dodo was fearless, and all the american animals.

We ate all of them when we showed up, in the american case c. 10000BC, long before iron weapons.

My point is that if the wild horses we first met were similarly tame, then surely we would have eaten them too. We didn’t. So probably they weren’t.

So that can’t be what stopped us domesticating african animals.

comment 8y ago · link · parent

The problem with this argument is that we know what happened when humans met trusting animals: we ate them to extinction. So probably the horse’s ancestors were pretty fierce.

comment 8y ago · link · parent

How many centuries did it take us to donesticate horses? Probably quite a few...

The only argument offered for the Why in the title is this one:

> Moreover, zebras have evolved alongside man, whereas European animals mostly evolved in the absence of man (we didn’t migrate out of Africa until relatively recently).

Yet clearly we weren’t such a shock to the horse’s ancestors that we simply ate them all... as we did everything in the Americas. Maybe because of earlier proto-humans? So is this some kind of goldilocks argument?

comment 8y ago · link · parent

No, dataflow's function y is defined in three smooth pieces, one of which is a constant. That's what this differentiation is seeing. It is evaluating at x+ϵ, and at 0+ϵ takes the ==0 branch which returns always 0, which has gradient 0.

Your function also has three pieces, and the only difference from `y ( x ) = x` is that you've chosen to specify a derivative at zero, i.e. y(x+ϵ) = if ( x==0 ) { 0+0ϵ } else { x+1ϵ }. Which you may have reason to do, say to tell your optimiser to stop pushing on the wall.

comment 8y ago · link · parent

Thanks! Will take a look.

comment 8y ago · link · parent

Do you have a simple example of a loop with no sensible derivative? Or rather, of a loop computing something which should have one, but for which AD fails?

If your loop is computing something like f(g(...h(x))) i.e. applying functions in sequence, starting with x, then there's no problem -- dual numbers will compute the correct derivative.

If the loop is an implementation detail, like I think the poisson distribution p(λ,k) is often computed with a loop up to k... then making λ a dual number still works. Clearly you can't differentiate on k, because it's an integer.

comment 8y ago · link · parent

Clearly y'(0) = 0 here, since at x=0 the function is defined to be a constant.

In calculus class this would be ill-defined / ambiguous, but the computer is simple-minded and picks one answer.

This doesn't seem like a major flaw to me. What are you using this for which would care? Maybe you have something like a rectification which produces exactly x=0 much more often than 1 in 2^32... in which case a function like your y amounts to a special case for this.

If you cared you could write a special case for the derivative too, here's one which will give y'(0)=42 but otherwise the automatic derivative:

    julia> y(x) = x>0 ? x : -2x
    julia> y(x::Dual) = x==0 ? dual(0, 42) : (x>0 ? x : -2x)

comment 8y ago · link · parent

You regard a conditional is a piecewise smooth function, like f(x) = {0 if x<0, x^2 if x>0}. Then the derivative is that of the smooth piece you evaluated.

Or to say that another way, since the derivative by definition changes x infinitesimally, it never changes on which side of the conditional x is located.

comment 8y ago · link · parent

This is actually something many authors aim for. Few readers need all the details, but some do, and this makes it obvious where to dig. It’s harder than it looks to pull off, without sounding stilted... perhaps because it’s the opposite of storytelling, where you build up to a punchline.

comment 8y ago · link · parent

Statistical mechanics is basically the study of how nature stores information. Or at least, what this means for certain kinds of physics.

This article is about relatively new things, but if you rewind 100 years, you find people thinking hard about this in simpler contexts. Gibbs is the big name, who essentially re-wrote thermodynamics (the study of heat, which until then had been thought of as some kind of invisible fluid) in the statistics of microscopic particles. This often involves counting the number of different possible states, for instance of all the atoms in a gas. Gasses whose molecules have two atoms (like N_2, compared to He) have larger heat capacity precisely because there are more different ways that these bi-atoms can be oriented, i.e. more information is needed to write down their states completely.

The older, thermodynamic, description is in a sense an optimally compressed representation of this microscopic picture. It keeps only what little information is visible to giants like us, who cannot see the individual atoms.

comment 8y ago · link · parent

No, you did not. The point of information is how many different things you can encode, or could have encoded. Among rules about like yours (but reversed, or only the even numbers, etc) this will be about 10.

comment 8y ago · link · parent

premise that we think we can pack an infinite amount of information into finite space time

The point of the article is that we think we cannot. And the fact that the upper bound grows not as the volume of space, but as the area of its boundary, has deep and subtle implications which we're slowly trying to figure out.

comment 8y ago · link · parent

The timetable is set partly so that you sleep during the boring bits and have daylight in the mountains.

At least it was when I did Chicago -> SF a few years ago. It was great, after the prairies you woke up in Denver & lots more people got on, spent a day going through the Rockies, sleep, and then a day in the Sierras. (I'm pretty sure we spent some of the night parked in a siding.)

comment 8y ago · link · parent

Depends whether they cut their teeth on Matlab!

I'm not sure which is faster here, often writing out the loop is a little faster but less compact.

comment 8y ago · link · parent

It's just that the language ought not to offer other ways, and must be very terse? Otherwise it seems like many languages would qualify:

    julia> fact(n) = prod(1:n)
That's 9 characters, shorter than q. (`julia> const Π=prod` brings it to 6, only apl is shorter.)

comment 8y ago · link · parent

I just realised who this blog post is by, it's the Paul Romer. Apparently gravitas is important at the World Bank, because clearly he's run the tank dry.

comment 8y ago · link · parent

Indeed, sorry! It even says so in the help.

And while I swear I've had rotorblade's problem before, right now "Copy as LaTeX" seems to do this too.

comment 8y ago · link · parent

Because the reproducibility crisis has very little to do with the difficulty in re-running the same code. These are almost orthogonal concerns.

The typical problem paper has a small data set, on which the authors tried 20 different things, one of which achieved p<0.05 and got published. The result tells you nothing meaningful about the world (or more often, tells you something about how its authors wish the world worked). But re-running their code on their data set will not reveal the problem.

comment 8y ago · link · parent

These are matters of taste, I use both & find Mathematica's notebooks much better than Jupyter. Editing text in a web browser is just painfully clumsy, and plain text is not great for reading mathematical expressions of any length. But obviously it depends what you're doing with it.

You complain about Sin[] but not about ugly things like np.sin()? Also I think you're looking for

    Sin[θ] //TraditionalForm //TeXForm

comment 8y ago · link · parent

Surely Tesla could get great price for bandwidth at 3am.

comment 8y ago · link · parent

"For example, if only the state was allowed to process financial transactions, we never would have gotten credit/debit cards."

Does this idea apply to small countries? It's possible that democratic pressure, by people who know what's available in Denmark etc. just across the border, would mean the country could end up getting credit cards, and then paypass, not much later than elsewhere. But nationalising the equivalent sector of the US banking system in 1950 would, as you say, leave everyone writing checks forever.

For the same reason, communism worked much better at catch-up industrialisation (just steal the blueprints for a steel mill, and build it) than for subsequent consumer products (where you need to experiment and feel the way).

comment 8y ago · link · parent

By no you mean yes? The point is that sudden braking of the car in front is easy to detect on radar, but distinguishing static objects which you must avoid from the many which you need not (signs, trees, cat's eyes, gravel) is very difficult.

comment 8y ago · link · parent

Automated mapping seems like it ought to be able to solve this. Even if the cameras are less good than a human, all the other cars' cameras could help immensely.

Why isn't every Tesla tracking all the lanes it can see, and the behaviour of every option at every exit, and flagging cases where one of the other lanes does something weird, or dangerous, half a mile later?

comment 8y ago · link · parent

It has radar too, I think.

But this seems like the hardest thing for radar to see. Moving cars are easy to distinguish from the ground because they have a different doppler shift, but a stationary object does not.

comment 8y ago · link · parent

"favorite typed machine learning library"

Flux is essentially nothing but some clever use of Julia's type system:

https://github.com/FluxML/Flux.jl

There's some ability to generate javascript too, which you can try here: http://fluxml.ai/experiments/mnist/ . Edit: I see it's actually using deeplearn.js == TensorFlow.js for this, details at https://github.com/FluxML/FluxJS.jl

comment 8y ago · link · parent

I'm not too sure what exact freedom this minority of users is after. Does granting the ability to load a custom kernel require zero engineering effort from Apple? Including doing it in a way which won't leave the door open for the FBI, and whoever else, to break in?

comment 8y ago · link · parent

The fact that they make it hard is what guarantees that there's a large pool of people with stock iphones. And this pool is too big a market to ignore, which is why I can have good apps, even from companies I don't trust, and deny them permissions I don't want to grant.

I think Apple understands this. The freedom you desire has ecosystem effects which I don't want.

You may quibble about precisely how hard is hard enough. Maybe they could loosen up a little bit, walk some middle path, and satisfy both of our desires. Maybe. Has anyone done it? Apparently people will sign anything you ask them to in order to play farmville. And every jailbreak seems like a security hole I'd rather not have.

comment 8y ago · link · parent

Isn't this the point of journals? They communicate new knowledge, which changes the status of what is known.

There's a balance to be struck in how certain these things should be before being published, for sure. The p-hacking plague is a symptom of setting this certainty bar too low, or equivalently, the required level of novelty too high.

Things which stay constant are the job of standards bodies, and textbook writers... these are important too, but different.

comment 8y ago · link · parent

A point not mentioned in the article is that this formal peer review system is itself quite young. I think that sending every paper out to several reviewers only became the default once we had xerox machines -- 1960s? We did a lot of serious science before that.

A bit earlier, the famous anecdote is about Einstein's offence that the Phys Rev editor would dare to send his paper for review at all -- apparently this would not have happened at a German journal of that era: http://www.preposterousuniverse.com/blog/2005/09/16/einstein...

comment 8y ago · link · parent

The point is that it's done largely out of a feeling of obligation to the community. There's a chance that if you declined all of it you'd get a reputation for being an asshole, but there would be no other consequence for you. Whoever pays your salary would probably not notice.

I have actually been paid by some journals, but only a token amount, like $30/paper.

1
7891011