by matthewdgreen · 6y ago · 0 comments
1. The developers had a couple of bugs that cause non-deterministic outputs in weird settings. It's a randomized model so this isn't a disaster, but obviously it would be better to have all non-determinism derived from a single seed. However, none of the bugs point to scientific issues. Still, these are real bugs that should be fixed. And indeed: another team pointed out some issues, they triaged the report, and it appears that they've been fixing these issues.
2. The code doesn't run well multi-threaded, and so the scientists run it on a single core. This seems like a feature the developers have de-prioritized. The critics make a HUGE deal about how using a single core is inefficient, but at the end of the day: if scientists can get simulations done in a reasonable time using a single core, this seems like a valid prioritization of limited development effort. The critics know better, obviously.
3. There aren't a bunch of unit tests. But as the authors point out code is in development and being altered continuously to reflect new developments in society and new knowledge about the virus, so it seems hard to develop unit tests that won't become broken as the underlying components change.
4. The critics seem to have a strong grounding in epidemiology. I'm just kidding, they claim to be pure software engineers, but still insist on spending a significant fraction of their critique disputing the calculation of R0 and lecturing the epidemiologists on how they think it should be calculated. This is a giant red flag given that the critics' sole stated expertise is software engineering.
5. The developers are continuing to add features to simulate new aspects of the ongoing pandemic (e.g., new code to simulate the impact of contact tracing apps) instead of fixing every minor issue in the code. Given that we're in the midst of a deadly epidemic that is putting human beings into the ground, this seems like a completely unavoidable resource allocation decision to me.
6. The critics can't even be bothered to pretend their criticism is objective. E.g., the piece concludes with "on a personal level, I’d go further and suggest that all academic epidemiology be defunded." Yeah, sure, you're a totally disinterested software expert here.
I guarantee you if you look at any piece of software -- commercial or scientific, no matter the budget -- with the politically-motivated goal of tearing apart the author, you will succeed. I can say this having spent years doing security and expert witness code reviews for some of the biggest and smallest companies in the software industry. This piece isn't a critique, it's just a hatchet job. And not even a particularly creative one.
This is hardly an unexpected conclusion given articles like this one and comments like yours, in which people defend buggy code on the grounds that academics shouldn't even be expected to produce work that isn't buggy. Academics are claiming they structurally can't produce correct, well documented code, not even when it's being used to advise governments.
Hence the conclusion that maybe academics shouldn't be writing that sort of code: how is that not an obvious inference to draw? You seem to believe that any criticism of academia is "politically motivated". It's the same attitude that can be seen in Imperial College's non-answer to the problems: you can't state the private sector has higher standards than academia despite overwhelming evidence it does, because then you're partisan and should be automatically ignored?
You're also an academic, aren't you? Surely that means you're the politically biased one here. How could it be otherwise?
The suggestion was not that academics should not write this kind of code. The suggestions was
"suggest that all academic epidemiology be defunded"Not do not write bad code but all epidemiology be defunded. So who will do epidimioly studies and develop models of deadly diseases? The software engineers? ;-)
1. Or do they? Or may be they do in certain cases? How can you guarantee that if the output matched your biased assumption but the output is non-deterministic that it's actually proves the theory?
2. That's may be an excuse to some degree
3. Bad excuse, it's all varies by design of the app. You can write either easy to test and modify code or spaghetti-code. Even if the code very volatile investing in proper design of the app will give you a plenty of room for unit testing
4. May be there are some of them who actually do have a grounding. In the age of internet it's quite easy to learn the basics having some math background. It won't make you an expert in that field but will give you enough to spot obvious mistakes.
5. If they personally can't do that why not to gather community together and combine the effort? Especially when it's a deadly epidemic.
6. Or may be somebody takes the critics too personal. Take it easy, you can always void it by a phrase - "please send a Pull Request". But you need to be ready to collaborate and actually accept PRs.
The whole situation looks very dirty and it's hard to filter out personal attacs and false critics. Although there are definitely some valid ones. edit: formatting
All the criticism would be moot if the model delivered sensible predictions.
* You'll obviously run into the "testing on your training data" problem, but again this isn't much of a criticism. We're in the midst of an epidemic and scientists are rapidly adjusting a model to reflect developing knowledge. The alternative is to have no models.
Any arguments that the developers of this code are somehow above needing to mechanically test, or formally verify, or independently peer review the code to ensure quality are trivially debunked by the history of bug fixes and changes in behaviour that we do know about, even before making any judgements based on the apparent attempts to hide that history and to conceal the original code from before they brought in programming experts to help tidy it up.
If you have indeed been an expert witness doing code reviews, are you seriously contending that you would not annihilate any case made in a court that hinged on the results of code like this?
This is much more difficult than reading a Git issue tracker, so obviously the critics have nothing to offer us here.
> It's a randomized model so this isn't a disaster
What you're saying here is that no matter what distribution properties the "randomness" has it's ok to substitute one with another, right?
> There aren't a bunch of unit tests
It isn't a Microsoft Windows, you know, where a lack of unit tests and uncaught bugs could be potentially fixed in the next release (or not). Report 9 is out, the harm is done.
#4 isn't an argument as we aren't arguing about epidemiological characteristics of the code, but about its validity and correctness.
I am loosing the interest in this discussion very quickly, because it is full of straw-man constructions and intellectual dishonesty, starting with the fact that the original code/model has never been shown to anyone besides of a very small group of hand-picked developers to groom it into some presentable form. Pity...