Better HN
topnewbestaskshowjobs
Log inSign up

_dps

1,602 karma · joined Jun 7, 2011 (15y ago) · 406 submissions

I roam the world trying to make things better with computational mathematics. Once upon a time I taught applied math at USC.

(email:demetri.spanos@gmail.com)

Submissions

comment 9y ago · link · parent

Yes, it certainly can be a big deal. You are assuming that there is a reliable way to evaluate "minor" and that the bureaucrats in charge will make that decision well in most cases (even though their incentive structure, parallel to an insurance company's, pushes them to trade bounded-but-not-lethal suffering against the bottom line every day).

I speak from personal experience in a country with an NHS-like "free" system. A close relative of mine flew to the US for short-term treatment of what was considered a "minor" eye problem, because he didn't want to spend 2-3 months functionally blind. It's true that the condition didn't threaten his life, but it did threaten his livelihood and personal autonomy on a daily basis; the bureaucratic process assessing priority decided this was a "minor" problem.

It's easy for us as the general population who isn't suffering to decide "minor, non-life-threatening" medical conditions can be comfortably shoved to the side.

*edited to remove language that could be considered inflammatory in the final paragraph, which was not my intent

212.

Running TensorFlow with GPU Support on AWS(mortada.net ↗)

4 points · by _dps · 9y ago · 1 comment

comment 9y ago · link · parent

In intellectual and creative work, the mind is not just hardware but also software and data. It's entirely plausible that the software gets better fast enough (with the right life experiences) to dominate the hardware getting worse with age.

comment 9y ago · link · parent

It seems this has been submitted before, but I found it fascinating and it's a subject I've seen discussed with interesting results here before. Perhaps it will get some more activity going this time around :)

215.

Can we know what animals are thinking?(medium.economist.com ↗)

2 points · by _dps · 9y ago · 1 comment

comment 9y ago · link · parent

> However, I did practically nothing to earn that internship ...

As someone who spends a lot of time in Europe, I find this exclusively-individualistic view of "earning advantage" to be too limiting, and characteristic of US ideas about class and privilege (Europe has its own, different problems).

Yes, you personally didn't earn that specific thing. But there's a very high chance that your family unit earned itself into being in a position to collect that "free" (at the point of accrual) benefit.

I think the most fundamental problem we face right now in terms of equalizing the game for historically disadvantaged people (an important goal worthy of some sacrifices) is how to square that with the very natural, and IMO totally fair, desire for parents to be able to pass some forms of fairly-earned advantage on to their children.

comment 9y ago · link · parent

Respectfully, this is begging the question :)

You're correct that neural networks don't encode information in the way current digital machines do (i.e. with explicit records/files/etc encoded in bytes). I would disagree that this is the only useful view of information. And certainly, from a Shannon information perspective, the network structure contains information (in the Shannon sense) about the environment or problem for which it was optimized.

comment 9y ago · link · parent

> The knowledge (heuristics) are encoded in the structure, not in some kind of information.

When you're talking about neural computation, distinguishing between an evolved network structure/architecture and "information" (or at least biases toward certain kind of information) is not very useful. The nature of these systems as computing substrates is that they encode information in network structure and rules for updating that structure.

comment 9y ago · link · parent

To add something, and to clarify (though I don't think you've made any mistake here, but many people misunderstand this subject):

The 33%-each Nash Equilibrium is the mixed strategy Nash Equilibrium of the micro game (i.e. a single round of RPS, averaged over all possible randomizations).

This is in no way the Nash strategy of the tournament game, which is "win the tournament given a pool of unknown participants and a set of rules for whom you face when". You have to add additional assumptions (e.g. that everyone else is going to play the uniform random strategy) in order for uniform random to be the Nash strategy for the tournament game.

If the pool includes players who deviate from the single-round nash equilibrium strategy, there is opportunity to exploit them (and in doing so, open yourself to possible exploitation). This is why pure random play can often perform very poorly at the tournament game.

comment 9y ago · link · parent

[AI/ML researcher/engineer here]

At best you can partly do this, and even that is debatable.

Here's a simple example: say Google builds a linear regression for the incremental likelihood to click a social post based on the distance of poster from you in a social network. By merely revealing the (single) coefficient in this model, they've revealed something about the underlying data set that they may not have intended.

It gets exponentially (I use this term deliberately) more difficult with multivariate nonlinear models. I have no doubt that substantial information about a data set could be reverse engineered from complex ML models, even if we don't yet know how. But even in the case of basic multivariate regression, the model directly encodes both the mean values and the covariances of all the variables. So that's a fair amount of disclosure already.

In some sense all models are (usually lossy) data compression, and it's just a matter of understanding the compression logic to go backwards from facts about the model to facts about the source data.

comment 9y ago · link · parent

I think this is meant to be a "hello world" level puzzle. You literally just click the cells and type to edit them.

Are you sure you can't edit once you highlight a cell? If so that's probably a bug.

comment 10y ago · link · parent

First, thanks for all your work on Murmur and SMHasher!

I wonder if you have any recommendations for a one-byte-at-a-time hash that survives SMHasher? I've been using Jenkins OAAT and haven't bumped into any problems but I've seen conflicting reports about its robustness. Any thoughts on Jenkins OAAT or an alternative one-at-a-time hash would be appreciated :)

comment 10y ago · link · parent

> Then how come an unfamiliar piece of source code is easier to follow than a mathematics paper using unfamiliar notation?

This is clearly subjective. I read lots of mathematics research that I find more accessible than even pretty mundane source code (and yes, I write software for a living and have done so for over ten years).

comment 10y ago · link · parent

> Uber on the other hand dispatches 100% of the work to their drivers

This is flatly false. Uber publishes available fares in real time, drivers choose to accept them or not. This is the entire premise of Uber. You might as well say that radio cabs "dispatch work to drivers", but it's exactly the same publish-subscribe model: central publishes an available fare, drivers compete to respond quickly accepting the fare based on their willingness and also their proximity, (the latter of which is judged by central).

The acceptance rates are a red herring: Uber says "if you're rarely going to accept a fare while you have the app in a state saying you're generally available, I'm not interested in listing you as potentially available to customers". I don't see how this creates a control-of-work-time, control-of-work-undertaken, control-of-hours-worked, or control-of-work-place relationship, which are the bases of the IRS classification.

Uber lets drivers choose when, where, how-much, and how-often they work... and they're totally fine with how-often being once-a-month. Uber is also fine with you working 3 other jobs that overlap in hours with the time you might allocate to Uber (i.e. no control-of-exclusivity).

The thing they won't let you do is: frequently list yourself as available, then repeatedly decline nearby available fares -- and yet still expect to be listed as generally available while you have the app open saying your'e generally available. Shut off the app when your'e not generally available within your geo proximity, and the acceptance rate problem goes away entirely.

comment 10y ago · link · parent

> but we're actually swimming in data ...

I think this is a "looking under the lamppost for your keys because that's where the light is" situation. We hear about tons-of-data and deep learning because teams like Google/FB have problems that fit those situations well. This is not representative of the vast sea of learning applications most organizations face.

I work on learning applications day-in-day-out. In a typical year I work with over 50 different organizations/projects. Almost none of them have data anywhere near what deep learning requires. Here are just a few examples from the past year:

1) optimizing recruiting pipeline. Maybe you have ~1000s of data points per year

2) medical billing applications: typically hundreds of data points per year

3) novel but slow-moving financial instruments, maybe 1 data point per day

4) automated sensor calibration where each run of the hardware costs you a few hundred dollars: depends on your budget, but thousands of data points in a year are representative

I think Google/FB and the "web+mobile is everything hivemind" (I'm not saying that applies to you) have deeply distorted people's expectations for how much data is available to solve a typical problem.

comment 11y ago · link · parent

> It is deceptively hard [...] The set of abstractions required to do it right are unobvious and nontrivial ...

I would be very interested to hear more about this aspect, if you would be willing to share. I'm always curious about things that sound like they should be simple but end up being surprisingly complicated if you want do do a good job :)

comment 11y ago · link · parent

While the overrepresentation of the repeat offenders is a valid concern, I feel like this makes a big point out of a relatively small change in conclusion.

  Old Analysis: slightly over half were incarcerated again
  New Analysis: about one third are incarcerated again
So regardless of how you measure it, there's an enormous relative risk of recidivism -- the general population is incarcerated at a mere 0.66% level [1] so that's still a 50x relative risk (compared to a 75x under the old calculation).

There is no avoiding the conclusion that ex-convicts are vastly more likely to perform crimes than the general population. From the perspective of risk management and policy design, 50x vs 75x doesn't seem to change much to me.

And I could forgive a lay person for taking the 50x relative risk to mean "ex convicts tend to return to jail" even if it's "only" 1 in 3. The general rate of incarceration is nowhere near 1 in 3.

[1] http://www.sentencingproject.org/template/page.cfm?id=107

comment 11y ago · link · parent

> but they can't do that while retaining staff and recruiting new staff effectively

I wish I had a better way to ask this, but... can you actually provide any evidence this is true? It is directly counter to my ~10 years of experience, and I've seen it at many companies that are home-run-level successful (i.e. there's no way one could qualify them as having trouble recruiting). I'm not sure I could name even one company that is "ostracized" for their hiring practices.

The only way that I can reconcile this theory with my experience is if I take the maximally extreme definition of "ruthless" ... something like firing someone in their first week after enticing them to leave a job and move across country. That, of course, will get you a bad reputation quickly. But I personally have not seen measurable negative consequences for firing alleged low performers for little to no reason within a 2-3 month period.

I would be curious (and pleased) to hear if this is just an unusual sample of experiences I've had.

Edit: let me clarify that when I say "I haven't seen measurable negative consequences" I don't mean that I have done that to anybody. But it has happened to upwards of 10 people I know.

comment 11y ago · link · parent

I'm struck by the great historical fortune of the people in these images. Barring an interstellar collision, they will outlast any earthly monument we could create to honor a person. Long after the Earth has been consumed by the sun, Jane Goodall's face will still be out there, cruising between the stars, hanging out with her apes.

I'm also amused at the idea that NASA was concerned about photographs depicting nude humans. Even on a document intended to be launched into the depths of space, the bureaucrats were concerned about perceived indecency.

230.

Photos NASA picked to explain our world to aliens(vox.com ↗)

51 points · by _dps · 11y ago · 8 comments

comment 11y ago · link · parent

The calibration cost is trivial compared to the coefficient learning cost. Very roughly, calibration is O(records) whereas coefficient learning is O(records * features). So the tiny add-on cost of calibration shouldn't affect anyone's evaluation of the relative merits of algorithms. NB still retains its computational advantage.

One thing that is often discounted in theoretical discussions is that NB takes much less I/O than something like LR, typically in the range of 5-100x (depending on how many iterations you want to do updating your LR coefficients). If you're doing, for example, a MapReduce implementation then NB has huge computational advantages. In LR each coefficient update costs you another map/reduce pass across your entire data set (whereas NB is always done in exactly one iteration).

So if NB + calibration gets you something close to LR for vastly less computation and I/O, why wouldn't you use it?

Having said that, if you're talking about small amounts of data that fit into RAM and you can "just load into R", then sure use LR over NB. For that matter use a Random Forest [0]. The reason NB is still around is because it offers a point in the design space where you spend almost no resources and still get something surprisingly useful (and recalibration narrows the utility gap between NB and better methods even more).

[0] And you should still consider calibrating your random forest's output.

comment 11y ago · link · parent

> One thing that Naive Bayes sucks at is providing good probabilistic estimates.

This is true based on how it's described in textbooks, but in practice it should always be combined with a calibration algorithm (which add a trivial O(n) cost to the process). The common choices here are Platt [0] or Isotonic Regression [1] (the latter should, itself, be combined with a regularization algorithm because it can easily overfit for outliers).

Given a calibration algorithm Naive Bayes produces probability estimates every bit as reasonable as any other algorithm.

[0] https://en.wikipedia.org/wiki/Platt_scaling

[1] https://en.wikipedia.org/wiki/Isotonic_regression

comment 11y ago · link · parent

A person practicing "monomesitia" would be a "monomesitis". I agree "monomonger" sounds pretty vulgar, but I found it humorous :)

comment 11y ago · link · parent

I'm not familiar with the associated ancient Greek word for middleman (-poly and -psony come from ancient Greek), but in modern Greek "μεσαζοντας" (pronounced meh-sa-zon-das) is "middleman". So that would suggest something like "monomesazontia".

There is also "μεσίτης" (meh-see-tees) which means broker / facilitator. That would suggest "monomesitia".

But if you're willing to mix Greek prefixes with English/Germanic roots for "dealer", then I like the sound of "monomongery" :)

comment 11y ago · link · parent

Sure, I elided a bit of complexity. I visit many coffee shops, including Starbucks. Some are owner-operated, some are not. Indeed Starbucks doesn't have a franchise model. And yet the managers both there and at owner-operated shops always seem happy to have me around "taking up space", and often offer me a free something-or-other.

That doesn't change the fact, raised in a sibling comment, that given the fixed cost of rent, having someone in the shop during off-peak hours is in a sense "advertising" the desirability of the place. Trickle revenue + "advertising" using up slack capacity seems like a clear win for them, given the pre-existing real estate investment.

comment 11y ago · link · parent

> a customer that sits half a day with a laptop costs Starbucks money.

First, congratulations on your launch! I hope to try Wheelys out soon!

A bit of well-intentioned feedback regarding your positioning strategy: as I am often the customer you mention who sits at Starbucks (or other coffee shops) all day, I can assure you that the owners don't perceive me as a cost even though I don't buy much (I often speak with them and ask about life as a small business owner). In fact, at locations I often visit, it's very common (say 1 in 3 visits) for the managers to give me a tiny freebie. Maybe I'm just a likable guy, but I don't think I'm so charismatic as to completely warp their perception of me being a drain or a benefit.

I think one important point is that I make sure to buy something any time I'm taking up space and the place is crowded (say 70+% fill rate on seating space). But that's at most 2 hours per day (the morning pre-work rush and the lunch rush). In those peak hours I would agree that I am taking up valuable real estate and should contribute something to their upkeep.

Anyway, congratulations again and I hope to see one of your sites soon!

comment 11y ago · link · parent

Their total value is irrelevant; what matters is the ROI you get from increasing or reducing each of them. I submit that taxes offer the lowest ROI of the three from the perspective of most businesses (but I admit that paying taxes to be in a good location can deliver ROI).

So as a business manager you ask: what do we lose by exiting this tax jurisdiction and what do we gain? And most importantly, what's the ROI? If my margins are tiny (say, most retail and restaurants) then saving 2% of my budget per year on taxes can mean the difference between a 4% and 6% ROI if the other factors remain equal.

That may sound like a small difference but it is not: it is as large as the spread between equities and bonds at most points in time (so if I'm only going to make 4% why be in business at all?) Why not just fire all my employees, use my budget to buy Walmart corp bonds, get 4%/year, and not have any management headaches or employer liabilities?

As economists say, most decisions are made "on the margin"; so the total amount that goes into tax is not as relevant as how much can be gained or lost by shaving off tax liability vs other kinds of costs.

comment 11y ago · link · parent

Are you saying something other than "you, the programmer, must declare spi to be volatile, or else the compiler might lay a bear trap for you?".

Based on your comment it seems clear that you understand that... but given that you understand that I don't get the point you're trying to make (except perhaps that writing low-level hardware code in C often means actively stopping the compiler from screwing you over).

(for non-C programmers: "volatile" can be approximated by "hey compiler, this variable can change unexpectedly even if you didn't do anything to change it, so don't use any optimizations that assume you're the only one changing it).

comment 11y ago · link · parent

Part 1 discussed last week on HN: https://news.ycombinator.com/item?id=9724990

The comments here and on the blog raised a few interesting questions:

- small route suboptimality problems, probably arising from integer input rounding for the Concorde solver

- optimizing for Euclidean/Geodesic distance vs drivable route distance

Both seem to be addressed here and it's interesting to compare how the solution changes when prioritizing raw distance vs driving distance vs driving time.

I figured since it hit #2 on HN last week people would enjoy the follow-up.

240.

Solving the Traveling Tesla Salesman Problem: Part 2(mortada.net ↗)

9 points · by _dps · 11y ago · 2 comments

1
789
14