Correction to: Nature Machine Intelligence https://doi.org/10.1038/s42256-024-00873-z, published online 5 August 2024.

In the version of the article initially published, Fig. 2a was a duplicate of Fig. 2c. A corrected figure is now included in the HTML and PDF versions of the article.