Better HN
topnewbestaskshowjobs
Log inSign up

andersource

1,192 karma · joined Jul 24, 2019 (7y ago) · 266 submissions

https://andersource.dev/

hi@andersource.dev

Have a nonstandard optimization problem? Could use an interactive visualization to explore complex data? I'd love to hear about it!

Submissions

121.

Dollar Auction(en.wikipedia.org ↗)

1 points · by andersource · 4y ago · discuss

122.

Britain pulls the plug on its UFO hotline (2009)(nbcnews.com ↗)

2 points · by andersource · 4y ago · discuss

comment 4y ago · link · parent

From TFA it appears this is not practical yet, maybe in the future:

> For now, it’s primarily a theoretical advance, since the speed improvements kick in only for networks that are far larger than the ones we encounter in the real world, for which maximum flow problems can already be solved fairly quickly (at least, if they don’t involve minimizing costs). But pieces of the new algorithm might see practical use within a year, predicted Richard Peng of the University of Waterloo in Canada, one of the algorithm’s six creators. And in the coming years, researchers said, computer scientists will likely find ways to make it more practical and perhaps even slightly faster.

124.

Interactive data exploration utilities with dimensionality reduction and D3.js(andersource.dev ↗)

3 points · by andersource · 4y ago · discuss

125.

Interactive data exploration utilities with dimensionality reduction and D3.js(andersource.dev ↗)

1 points · by andersource · 4y ago · discuss

comment 4y ago · link · parent

That's cool, I didn't know that, thanks!

comment 4y ago · link · parent

Thanks for your reply!

I've only seen (and used) this for linear / convex models and constraints, so that's actually linear / convex programming (highly recommend the cvxpy library [0]). I was curious if you've integrated that into DL models.

Here's a fun example I did for a uni project: say you have a small recipe dataset, where for each recipe you have the ingredient list ("3 tbsp sugar", ".5 kg flour" etc.) and macronutrients (carbs, proteins, fat), and you want to learn to predict the nutritional content given a list of ingredients.

With a bit of text manipulation you can split each ingredient text to "amount", "measurement unit" and "ingredient type". Then you can decompose the nutritional values into nutritional density of ingredients and the conversion of measurement unit -> actual mass for each ingredient type. Then you can introduce constraints in the form of known conversions between units, e.g. 1 cup = 16 x tbsp, known nutritional densities of some simple ingredients, and known unit conversions for specific ingredients.

It worked better than simple regression (that didn't take into account unit conversions) and a simple MLP, though not sure how it would compare if you actually tried to finetune a language model to the task. The overall predictions weren't too accurate, but for common ingredients it actually gave very close nutritional density values (without being constrained), which was cool.

Edit: another constraint I initially forgot about is that each gram of an ingredient cannot contain more than a gram of macronutrients (it can contain less because water), and of course nonnegative nutritional density.

[0] https://www.cvxpy.org/

comment 4y ago · link · parent

Makes sense, and designing proper constraints is an art on its own.

Out of curiosity, did you apply the constraint as a term in the loss or did you use constrained optimization?

comment 4y ago · link · parent

I fully agree with your perspective, and I think there's a lot of cargo-culting in that area that explains your observations. Sure, if you're a FAANG collecting massive amounts of data comes almost for free, and it makes sense to find a way to properly utilize that data. But for many startups collecting that amount of data doesn't make sense (either because they don't have a lot of users yet or because their domain isn't high-freq digital activity or both), and in those cases it can be more worthwhile figuring out what to do with the little data they have than shoe-horning their way into Big Data (TM).

There's much more money to be had convincing startups to use big data infrastructure and train huge nets on GPU clusters etc. than convincing them to iterate on small ad-hoc models developed in-house. Not saying that big data or models are necessarily wrong for small startups, just that they don't have to be the default.

comment 4y ago · link · parent

This article strongly resonates with me (thanks OP!). Models trained on huge datasets are truly very impressive, and it's easy to jump on the hype train of "BIG MODEL GO VROOM" and overlook the cool / useful things one can do with a little data and solid domain knowledge.

Transfer learning can be immensely useful when applicable, but many times it's not (e.g. imagine a medical domain where you track a patient through some process, recording procedure choices, measurements and outcomes, etc., where it can be difficult to find relevant data elsewhere).

Some approaches I've found useful:

* Get to know the domain really well

* It's not a lot of data - that's a potential for rich interactive visualizations that allow you to get to know the data quite well, and grok how it relates to the domain knowledge

* Following the advice that ML models in production could/should start with simple heuristics, view your model more as an augmented heuristic than a powerful model to solve everything - that means also figuring out how to catch and handle cases where it's wrong (which is something one ought to do anyway)

* Invest in tailoring priors suitable to the problem, based on your domain knowledge and understanding of the data. This can range from writing your own loss function to training an ad-hoc type of model, not based on DL, e.g. using metaheuristics (genetic algorithms, simulated annealing etc.). The advantage of small data is that evaluation on it can be relatively fast and ad-hoc models using nonstandard techniques can be realistically optimized (sometimes, depending on context of course).

comment 4y ago · link · parent

SEEKING WORK | Remote | Data Science

Need to solve a nonstandard optimization problem? Could use an interactive visualization to explore complex data? I'd love to hear about it!

https://andersource.dev/

hi@<username>.dev

132.

Lasers in Space: remote-friendly physical co-op game made in 24h for a hackathon(andersource.dev ↗)

2 points · by andersource · 4y ago · discuss

comment 4y ago · link · parent

In case you're asking about the parent comment (s/Differential/Differentiable), it means the title should be "differentiable CV" (instead of "differential CV").

"Differentiable" describes some computation for which derivatives can be computed. "Differential" is a more general term which means that something has to do with differences, e.g. differential equations deal with equations that specify how things change together.

With the recent surge in deep learning came significant improvements in optimization techniques and hardware, making it feasible to formulate some computations in a differentiable manner. Doing that allows one to optimize the computation process relatively efficiently, at least in theory. Some other examples: differentiable programming[0] (other differentiable techniques are a subset of this), differentiable rendering[1], differentiable signal processing[2].

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

[1] https://arxiv.org/abs/2006.12057

[2] https://github.com/magenta/ddsp

134.

How to determine which of two sequences of coin flips is real and which is fake?(stats.stackexchange.com ↗)

1 points · by andersource · 4y ago · discuss

comment 4y ago · link · parent

Overall agree, although regarding

> large enough AI models cannot be "race-blind" because if you remove race as a feature, they will be able to infer it anyways from proxy features

In theory using a gradient reversal layer and an adversarial classifier you could do just that, to an extent. It could hurt the model's performance, which is exactly your point (should we ignore features with signal because they can be used to discriminate.)

comment 4y ago · link · parent

> I'm kind of looking for a unified data storage with visualization options.

That phrase reminded me of elasticsearch & kibana[0], though that may be an overkill (the elastic stack is a lot of work).

Also seems like datadog has a solution in the space[1], haven't used it though.

[0] https://www.elastic.co/kibana/

[1] https://www.datadoghq.com/solutions/retail-ecommerce/

comment 4y ago · link · parent

I agree in principle, although I think to get an effect size similar to what DK observed you'd need quite large noise. Which again comes back to the test reliability.

comment 4y ago · link · parent

Right. Just to be clear, "an effect like this" is (comparatively) unreliable tests, not some elusive statistical phenomena as implied by the original article. I'd have no issue if the author had called the article "the DK effect is due to poor skill tests", spent 5 minutes showing that the DK results are consistent not only with their claims but also with unreliable tests (like you did), then went on to show data that indicates that the tests indeed are not reliable enough to draw the conclusions that DK did. Instead the author spends a lot of time digging under the wrong tree and no time at all saying anything about the reliability of the tests.

comment 4y ago · link · parent

Thanks John! Very interesting.

What your simulation includes and the original article didn't (and I didn't touch at all in my article) is the statistical reliability of the tests they administered. Where you got a CC of -0.38 you used equal reliability (/ unreliability) of the skill tests and self-assessments. You can see that as you increase the test reliability, the CC shrinks and the effect disappears.

I have no idea what's the actual reliability of the DK tests, they do seem to consider that but maybe not thoroughly enough. In my view it's very fair to criticize DK from that angle. But that would require looking at the actual tests and their data.

My point being, that any purely random analysis is based on assumptions that can easily be tweaked to show the same effect, the opposite effect, or no effect at all.

comment 4y ago · link · parent

Hey omnicognate, good to see you here, appreciated our previous discussion.

What you're saying is that we need to verify the statistical reliability of the skill tests DK gave, and to some extent that we need to scrutinize the assumption that there indeed is such a thing as "skill" to be measured in the first place. I hope we can both agree that skill exists. That leaves the test reliability (technical term from statistics, not in the broad sense).

What's simulated by purely random numbers is tests with no reliability whatsoever. Of course if the tests DK gave to subjects don't actually measure anything at all, the DK study is meaningless. If that's what the original article's author is trying to say, they sure do it in a very roundabout way, not mentioning the test reliability at all. I'd be completely fine reading an article examining the reliability of the tests. Otherwise, I again fail to see how the random number analysis has anything to do with the conclusions of DK.

In fact, DK do concern themselves with the test reliability, at least to some extent. That doesn't appear in the graph under scrutiny but appears in the study.

If you assume the tests are reliable, and you also assume that DK are wrong in that people's self-assessment is highly correlated with their performance, and generate random data accordingly, you'll still get no effect even if you sample twice as you propose.

> The key point though is that if you use a separate sample of X that correlation disappears completely

Separate sample of X under the assumption of no dependence at all of the first sample, i.e., assuming there is no such a thing as skill, or assuming completely unreliable tests. So, not interesting assumptions, unless you want to call into question the test reliability, which neither you nor the author are directly doing.

comment 4y ago · link · parent

I don't think there's a definite one-size-fits-all answer to that, it will depend on what's most enjoyable to you, what jobs you'll be applying to etc. My personal recommendation (which is based on my n=1 subjective experience) is:

- python DS ecosystem; fundamentals: numpy pandas matplotlib seaborn sklearn scipy. From there you can branch in many different directions - interactive visualization libraries (e.g. plotly / bokeh), stats / probability stuff (statsmodels / pymc3), NLP, sklearn addons, ML explainability, ...

- solid "software engineering" - writing good code, unit tests, documentation, logging, basics of deploying a service

- TF / pytorch if you want to get into the deep learning hype

Best of luck, and more importantly, enjoy!

comment 4y ago · link · parent

Mostly in reaction to this thread: https://news.ycombinator.com/item?id=31036800

143.

I can't let go of “The Dunning-Kruger Effect is Autocorrelation”(andersource.dev ↗)

15 points · by andersource · 4y ago · 3 comments

comment 4y ago · link · parent

"Null hypothesis" comes down to agreeing on a prior that is "reasonable". Most of the time, that indeed means not assuming dependencies, e.g. when testing the outcomes of a medical treatment. But that's not always the case, e.g. does it seem reasonable to you to assume a priori no dependency between a person's age and their height? Does the result "People get taller until the age of 20" merit a journal article? There's a very strong correlation there after all.

As I've written elsewhere this all comes down to the prior, based on my life experience the prior "people are generally capable of self-assessing their performance" is much more likely than "people have absolutely no ability to self-assess their performance."

To state it differently, when you assume no dependencies anywhere, you've already jumped to a conclusion that is more far-fetched to me than the results of DK. Do you really think people have zero ability to self-assess their own performance? In all domains and all contexts, as this is your "null hypothesis"?

comment 4y ago · link · parent

Sorry, but this doesn't make sense to me. There has to be a boundary - a person who got all the answers wrong can't underestimate their performance, and a person who got all the answers right can't overestimate their performance. You could make the case that boundary effects are all DK is about, but that's not what the article is doing (and also I don't think such a claim is supported by the DK plot).

comment 4y ago · link · parent

I strongly disagree, not necessarily with everything (e.g. I don't have access to the raw data from the DK experiment, don't know how well they performed all the analysis leading to the plot). But the plot itself is not inherently deceptive, and, unlike implied in the article, is not equivalent to "just comparing x to x". The plot essentially shows the actual performance vs. self-assessment of performance, compared to what we would expect if there were perfect correlation.

comment 4y ago · link · parent

Thanks! No worries, I appreciate you writing this.

> I can see the objection that a more convincing example might be to demonstrate the "false" DK effect in an example that does have some signal

More than that - as it is, the argument is meaningless to me. It states that DK is trivial in a world where all people have no ability whatsoever to assess their own performance. OK, and finding dinosaur bones is uninteresting in a world where dinosaurs roam free. Both are true, but both are irrelevant in our world (considering my priors). To give a less hyperbolic example, suppose I found some population of people whose weight and height correlate much less than we currently measure, through some biological mechanism of very high variance in bone density or something. To me this article is like saying "well yeah, but this finding is uninteresting, for example if you take purely random weight and height you get an even stronger effect of short people with very high bone density and tall people with very low bone density".

Regarding all the rest - I don't really understand all this "comparing things which both contain the same single sample from a noise source". I'm currently willing to bet (albeit not too much) that any synthetic data experiment you'll come up with, that doesn't display an effect through the DK analysis, will turn out to be based on assumptions that strongly align with my prior, which is that subjects' self-assessment of their performance is correlated to their performance, with 0 bias (on average) and noise that is small (but not negligible) compared to the signal. Would be interested to be proven wrong.

> Pure noise like the random numbers in the example displays a powerful DK effect due to autocorrelation that says nothing interesting

On the contrary, finding out that the distribution in the real world is like that ("pure noise") would be very surprising (therefore interesting, in a sense) to me.

comment 4y ago · link · parent

> 1. As mentioned in another comment, X and Y can't be independent and correlated at the same time

And as I replied to that comment, "sorry, my bad - Y - X and X will be negatively correlated."

> 2. The point of the article is to show that you can replicate the results of the DK paper starting from purely random data

You (and many others) are using "purely random data" as if it's always the null hypothesis and using it to cast doubt on the results. But assuming as the null model 0 correlation between skill and self-assessment of that skill makes no sense to me, and is in fact more extreme than the claim DK is making. So in other words, sure, if you assume something more extreme than the claim and generate data based on this assumption, you'll get the same effect and more extreme.

comment 4y ago · link · parent

Right, sorry, my bad - X and Y - X will be negatively correlated

comment 4y ago · link · parent

Here's my main point of confusion - what does the random data experiment have to do with the DK results?

As stated elsewhere DK has 2 claims:

1. Low-skilled people overestimate their performance and skilled people underestimate their performance

2. Skill correlates with self-assessment accuracy

My first issue with the article is that it implies that since we get effect #1 with random data, that invalidates the respective DK conclusion. This IMO is misleading because random data represents a null model that is very different from my intuitive null model, that of people generally capable of assessing their skills (which I truly believe).

My second issue is that there's no relationship between effect 2 and the random data experiment, which doesn't exhibit anything of the sort. We can have a discussion about the cited papers and effect 2 as the reproduced plot doesn't show density and density plots from the paper do seem to support DK, but that's not my main gripe with the article.

1
456
9