News for hackers. Stuff that matters.
Re:Deep learning for twelve hour precipitation forecasts by YeGoblynQueenne on Sunday February 12, 2023 @05:59AM (#34761883)
I haven't got a clue about meteorology, but I know a thing or two about machine learning and the majority of papers in the field remain interesting prototypes because they are tested in the same way: namely, on a test dataset that is already known and readily accessible during training -by the experimenters, and thereofore, indirectly, by the training model itself.

This is the case with this paper, from which I quote (see section "Dataset creation and splits"):

>> The available data spans a period from July 2017 to August 2020.

In other words, they have shown that their system works better than an earlier system on old data. It can predict rainfall in a three-ish year interval in the past.

Show that your approach works on real-world data, that you didn't have access to when training your model. Show that your models can predict the future, not the past. Otherwise, your experiments don't mean, what you think they mean.

Edit: and to make it perfectly clear for the uninitiated: when you, as an experimenter, know the "ground truth" of your test data, there is nothing easier than to tune the training of your model to maximise its performance on the test data. That's doubly so, and doubly as dangerous, with neural nets that are very, very good at reproducing their training set, but very, very bad at generalising beyond it. Unfortunately, this is what the vast majority of experiments in machine learning do: they test on known data. The result is that nobody really knows how good the tested systems are until they deploy them in a real environment (if they ever do, which they usually don't, because the whole point was writing a paper to report improved performance, and then move on to the next).

Re:Deep learning for twelve hour precipitation forecasts by thrwawy74 on Sunday February 12, 2023 @06:56AM (#34762167)
As an anecdote, I just started a masters in data analytics and I've been having a lot of fun asking ChatGPT for help detecting overfitting and useful terms like the mean squared error (MSE).
Re:Deep learning for twelve hour precipitation forecasts by m463 on Sunday February 12, 2023 @09:26AM (#34763005)
lol, reminds me of "The brain is the most important part of the body, until you realize who's telling you"
Re:Deep learning for twelve hour precipitation forecasts by thrwawy74 on Sunday February 12, 2023 @06:04PM (#34768123)
Absolutely; i just mean I love it for guiding my learning :) i don't use it for final projects, but it does help me navigate the material if I'm not comprehending it well. I hope ChatGPT is embraced for that reason, because it's really like finding a key to a lock with professors. They explain things in the most effective way they know how, and ChatGPT wouldn't get exhausted or impatient with you if you ask it the same question in different ways. That said, it does produce erroneous information. I hope less than my professors.

:)

Re:Deep learning for twelve hour precipitation forecasts by candiodari on Sunday February 12, 2023 @07:14AM (#34762267)
> Show that your approach works on real-world data, that you didn't have access to when training your model. Show that your models can predict the future, not the past. Otherwise, your experiments don't mean, what you think they mean.

Great, but ... that requires you have collection infrastructure and almost by definition means you can't make it work on a dataset. The way ML research works is like the Kaggle competitions.

You get a dataset. This can be anything, as long as it can be expressed as a tensor (which are vectors, but can have more dimensions). Then split into seen and unseen data. You split into 3 portions/partitions. One for training. One for testing, and one for blind validation (80% training and 10% each for test and validation sets).

In order to simulate what you're suggesting researchers can, and often do, take the most recent datapoints as validation and testing sets.

But extending the data set is an expensive process that generally can't be done by the machine learning researchers themselves. So it is not done.

Re:Deep learning for twelve hour precipitation forecasts by zamfi on Sunday February 12, 2023 @08:07AM (#34762536)
Best practice here is to keep a chunk of your dataset held out from your entire development process (a "held out test set"), and then only evaluate it when you write your final report on your work.

The idea is that you don't even look at this data until you're confident you've solved the problem, and then you have one shot to confirm that you have, indeed, solved it. Obviously you have to be careful in selecting this set -- if you're working with time-series, for example, you want it to be temporally disjoint -- but done well it's a reasonable approximation for "future results".

About as good as you can get without collecting new data.

I can't tell if they did that here, but if they did, they didn't use the common jargon for it.

Re:Deep learning for twelve hour precipitation forecasts by muraiki on Sunday February 12, 2023 @08:36AM (#34762701)
"The training, validation and test data sets are generated without overlap from periods in sequence. Successive periods of 400, 12, 40, 40 and 12 h are used to sample, respectively, training, validation, and test data, with the two 12 h periods inserted as hiatus."
Re:Deep learning for twelve hour precipitation forecasts by zamfi on Sunday February 12, 2023 @12:45PM (#34764914)
What's missing is that they did not use the test set during the training process.

A common split is train/validate/test, but all three are used during training -- train to actually train, validate for intermediate loss, test for model comparison.

What you want is a fourth, held-out test set that isn't looked at until publish time.

This paper has two test sets, but they have different data properties, and it's not clear they were held out until publication.

Re:Deep learning for twelve hour precipitation forecasts by whatshisface on Sunday February 12, 2023 @02:41PM (#34766096)
I can't believe you can publish with such an obvious flaw in study design. You don't have to have machine learning expertise to catch that, because the same idea applies to backtesting any kind of model at all.
Re:Deep learning for twelve hour precipitation forecasts by YeGoblynQueenne on Sunday February 12, 2023 @04:03PM (#34766918)
And yet they do. I don't remember ever reading any machine learning paper where the authors point out that they held out a test partition that they couldn't access until some "final" step of the experiment.
Re:Deep learning for twelve hour precipitation forecasts by martincmartin on Sunday February 12, 2023 @08:13AM (#34762565)
Suppose you do this, try some different models, get the error down on the training sample. Then you apply to the test sample and the results are ... about the same as the well known results. The best practice says you should now quit and move on to another project, and either publish a negative result or don't bother publishing at all.

Human nature, and publish-or-perish rewards, mean the researcher will say "well, what if I try this other model? Or tweak this parameter, or ..."

In other words, it's unrealistic to say you have one shot to confirm that have, indeed, solved it.

Re:Deep learning for twelve hour precipitation forecasts by zamfi on Sunday February 12, 2023 @12:54PM (#34764991)
Not unrealistic -- it just causes people to be very, very careful about not fooling themselves.

Do you really believe that this practice is unrealistic because anyone with a model that doesn't do well on the held-out set will simply engage in fraud? That is a very, very cynical take.

FWIW, I have published this way [0]. There were definitely some aspects of the model's performance on the held-out set that did not meet test set performance; it's not fatal to the paper, it's an invitation to discuss.

[0] https://arxiv.org/pdf/2205.07333.pdf

Re:Deep learning for twelve hour precipitation forecasts by YeGoblynQueenne on Sunday February 12, 2023 @04:01PM (#34766898)
(Not the person you're replying to)

Fraud is not needed. My intuition is that most people publishing in machine learning have simply not thought carefully enough about their experimental methods. They're not defrauding anyone, they're misunderstanding their own results.

And since the majority of published papers do the same, it's very difficult to convince anyone what the good practice is.

Good on you for doing it the right way.

Re:Deep learning for twelve hour precipitation forecasts by zamfi on Sunday February 12, 2023 @04:09PM (#34766993)
Oh, we're on the same page -- I don't think they're engaging in fraud currently, just overlooking the implications of their process, as you note.

But explicitly holding out a test set, throwing it away because your results on that set were no good, trying again, and then representing that held-out set as, indeed, held-out in later work -- as the parent suggested? I'm not sure what other word to use there.

Re:Deep learning for twelve hour precipitation forecasts by dr_dshiv on Sunday February 12, 2023 @08:34AM (#34762692)
> About as good as you can get without collecting new data.

So let’s call holdout datasets “second-best practice”?

Re:Deep learning for twelve hour precipitation forecasts by zamfi on Sunday February 12, 2023 @12:47PM (#34764925)
LOL, love it!

Sadly too common that collecting new data is practically speaking impossible, because the actual collection process is underspecified.

Re:Deep learning for twelve hour precipitation forecasts by YeGoblynQueenne on Sunday February 12, 2023 @03:59PM (#34766877)
You're absolutely right, but the problem is that very few people do that, and that the result is we don't really know what result we can trust.
Re:Deep learning for twelve hour precipitation forecasts by akkartik on Sunday February 12, 2023 @04:54PM (#34767476)
I don't understand why there is any doubt about this. From OP, section "Methods", subset "Data set creation and splits":

"The training, validation and test data sets are generated without overlap from periods in sequence. Successive periods of 400, 12, 40, 40 and 12 h are used to sample, respectively, training, validation, and test data, with the two 12 h periods inserted as hiatus."

I know nothing about machine learning, but I was in grad school with others studying machine learning and I took a Coursera course on the subject, and carving out a training set is utterly standard practice. A paper that didn't do this would get filtered by a grad student reviewer. So I'm not sure what possible sub-category of machine learning your statements could apply to. Can you share any examples? For example, do any of the famous papers in the field fail to hold out test data? Something like AlphaGo or AlphaZero is indeed testing on all new data -- new games it plays with others. Do any papers in well-known machine learning fora fail to hold out test data? Does anything that has bubbled to the front page of HN? It would be interesting to look at if so.

Do you mean p-hacking? That's a much more subtle thing.

Re:Deep learning for twelve hour precipitation forecasts by zamfi on Sunday February 12, 2023 @05:06PM (#34767604)
Very few ML papers use a held-out test set that is only used for publication.

When you use your test set as part of model selection, you don't really have an empirical test set -- you do have a training set that you've partitioned into various parts for various purposes, but you don't have a proxy for how the system will perform in the face of new data, because you're reporting results that are based on data that you used as part of your model-generating process.

If you try out models A, B, C, and D while developing, and then it turns out model D has the best performance on your test set, and you report your results using model D and that same test set, you are essentially "training" using your test set.

Yes, in some problem contexts, for ML researchers who are also in the business of generating their own datasets, the data they test on can be entirely new. But for anyone using a pre-existing dataset, holding out a test set for your project is not yet a well-established practice -- and this makes it somewhat harder to trust the results.

Re:Deep learning for twelve hour precipitation forecasts by akkartik on Sunday February 12, 2023 @05:14PM (#34767686)
I see, thanks for the explanation.

Edit: Oh, and I see now that you explained it below, sorry.

Re:Deep learning for twelve hour precipitation forecasts by muraiki on Sunday February 12, 2023 @08:41AM (#34762745)
It's worth noting that the paper was submitted in August of 2021. So perhaps it took a year to develop the methodology and get the paper ready for publishing. They did use separate training, validation, and test sets for data, although we do need to trust that the test set was only used a single time. To whatever extent the model doesn't do as well in 2022 as it did at the time it was created, that comes down to concept drift and data drift.
Re:Deep learning for twelve hour precipitation forecasts by m463 on Sunday February 12, 2023 @09:24AM (#34762997)
Reminds me of the visual cancer recognition model that was actually keying off of the ruler in the picture.
Re:Deep learning for twelve hour precipitation forecasts by j7ake on Sunday February 12, 2023 @10:09AM (#34763350)
In competition formats, the test data is not seen by anybody and after submission, the best algorithm is ranked based on how well it works on this unseen test data.