Published November 25, 2022 | Journal article | Version v1 | https://doi.org/10.21105/joss.04655

metrica: an R package to evaluate prediction performance of regression and classification point-forecast models

Files

joss.04655.pdf

Files (3.1 MB)

Name Size Download all
md5:40fd64f00071b8191810e205d3494a3c
1.2 MB Preview Download
md5:d5be401b12aa66708aa7bc1f8854cc85
1.9 MB Preview Download

Additional details

Dates

Issued
November 25, 2022

References

  1. Correndo, A., Rosso, L. M., Hernandez, C., Bastos, L. M., Nieto, L., Holzworth, D., & Ciampitti, I. (2022). metrica: an R package to evaluate prediction performance of regression and classification point-forecast models (Version v2.0.1.999) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.7291776
  2. Correndo, A. A., Moro Rosso, L. H., Schwalbert, R., Hernandez, C., Bastos, L. M., Nieto, L., Holzworth, D., & Ciampitti, I. A. (2022). metrica: Prediction performance metrics. https://cran.r-project.org/package=metrica
  3. Correndo, A. A., Hefley, T. J., Holzworth, D. P., & Ciampitti, I. A. (2021). Revisiting linear regression to test agreement in continuous predicted-observed datasets. Agricultural Systems, 192, 103194. https://doi.org/10.1016/j.agsy.2021.103194
  4. Kuhn, M., & Vaughan, D. (2022). yardstick: Tidy characterizations of model performance. https://cran.r-project.org/package=yardstick
  5. Kuhn, M., & Wickham, H. (2020). Tidymodels: A collection of packages for modeling and machine learning using tidyverse principles. https://www.tidymodels.org
  6. Kuhn, M. (2022). caret: Classification and regression training. https://cran.r-project.org/package=caret
  7. Wickham, H., Averick, M., Bryan, J., Chang, W., McGowan, L., François, R., Grolemund, G., Hayes, A., Henry, L., Hester, J., Kuhn, M., Pedersen, T., Miller, E., Bache, S., Müller, K., Ooms, J., Robinson, D., Seidel, D., Spinu, V., … Yutani, H. (2019). Welcome to the Tidyverse. Journal of Open Source Software, 4(43), 1686. https://doi.org/10.21105/joss.01686
  8. Wickham, H. (2016). ggplot2. In Use R!. Springer International Publishing. https://doi.org/10.1007/978-3-319-24277-4
  9. R Core Team. (2021). R: A language and environment for statistical computing. R Foundation for Statistical Computing. https://www.r-project.org
  10. Miguez, F. (2022). Apsimx: Inspect, read, edit and run 'APSIM' "next generation" and 'APSIM' classic. https://cran.r-project.org/package=apsimx
  11. Hamner, B., & Frasco, M. (2018). Metrics: Evaluation metrics for machine learning. https://cran.r-project.org/package=Metrics
  12. Mauricio Zambrano-Bigiarini. (2024). hzambran/hydroGOF: v0.6-0 (Versions v0.6-0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.839854
  13. Lüdecke, D., Ben-Shachar, M., Patil, I., Waggoner, P., & Makowski, D. (2021). performance: An R Package for Assessment, Comparison and Testing of Statistical Models. Journal of Open Source Software, 6(60), 3139. https://doi.org/10.21105/joss.03139
  14. Thieme, N. (2018). R Generation. Significance, 15(4), 14–19. https://doi.org/10.1111/j.1740-9713.2018.01169.x
  15. Hackenberger, B. K. (2020). R software: unfriendly but probably the best. Croatian Medical Journal, 61(1), 66–68. https://doi.org/10.3325/cmj.2020.61.66
  16. Wallach, D., Makowski, D., Jones, J. W., & Brun, F. (2019). Model Evaluation. In Working with Dynamic Crop Models (pp. 311–373). Elsevier. https://doi.org/10.1016/b978-0-12-811756-9.00009-5
  17. Tedeschi, L. O. (2006). Assessment of the adequacy of mathematical models. Agricultural Systems, 89(2-3), 225–247. https://doi.org/10.1016/j.agsy.2005.11.004
  18. Holzworth, D., Huth, N. I., Fainges, J., Brown, H., Zurcher, E., Cichota, R., Verrall, S., Herrmann, N. I., Zheng, B., & Snow, V. (2018). APSIM Next Generation: Overcoming challenges in modernising a farming systems model. Environmental Modelling & Software, 103, 43–51. https://doi.org/10.1016/j.envsoft.2018.02.002
  19. Holzworth, D. P., Huth, N. I., deVoil, P. G., Zurcher, E. J., Herrmann, N. I., McLean, G., Chenu, K., van Oosterom, E. J., Snow, V., Murphy, C., Moore, A. D., Brown, H., Whish, J. P. M., Verrall, S., Fainges, J., Bell, L. W., Peake, A. S., Poulton, P. L., Hochman, Z., … Keating, B. A. (2014). APSIM – Evolution towards a new generation of agricultural systems simulation. Environmental Modelling & Software, 62, 327–350. https://doi.org/10.1016/j.envsoft.2014.07.009
  20. Seibold, H., Czerny, S., Decke, S., Dieterle, R., Eder, T., Fohr, S., Hahn, N., Hartmann, R., Heindl, C., Kopper, P., Lepke, D., Loidl, V., Mandl, M., Musiol, S., Peter, J., Piehler, A., Rojas, E., Schmid, S., Schmidt, H., … Nalenz, M. (2022). Correction: A computational reproducibility study of PLOS ONE articles featuring longitudinal data analyses. PLOS ONE, 17(5), e0269047. https://doi.org/10.1371/journal.pone.0269047
  21. Olsen, L. R., & Zachariae, H. B. (2021). cvms: Cross-validation for model selection. https://cran.r-project.org/package=cvms
  22. Nikos Bosse, Sam Abbott, Sam Abbott (bot), Sebastian Funk, James Azam, Hugo Gruson, actions-user, Toshiaki Asakura, Michael Chirico, Kath Sherratt, Jack Kennedy, Adam Howes, Nicholas G Reich, Sebastian Funk - robot edition, & Damon Bayer. (2026). epiforecasts/scoringutils: scoringutils 2.3.0 (Version v2.3.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.4618017
  23. Lang, M., Binder, M., Richter, J., Schratz, P., Pfisterer, F., Coors, S., Au, Q., Casalicchio, G., Kotthoff, L., & Bischl, B. (2019). mlr3: A modern object-oriented machine learning framework in R. Journal of Open Source Software, 4(44), 1903. https://doi.org/10.21105/joss.01903
  24. Kobayashi, K., & Salam, M. U. (2000). Comparing Simulated and Measured Values Using Mean Squared Deviation and its Components. Agronomy Journal, 92(2), 345–352. https://doi.org/10.2134/agronj2000.922345x
  25. Warton, D. I., Wright, I. J., Falster, D. S., & Westoby, M. (2006). Bivariate line‐fitting methods for allometry. Biological Reviews, 81(2), 259–291. https://doi.org/10.1017/s1464793106007007
  26. Ji, L., & Gallo, K. (2006). An Agreement Coefficient for Image Comparison. Photogrammetric Engineering & Remote Sensing, 72(7), 823–833. https://doi.org/10.14358/pers.72.7.823
  27. Duveiller, G., Fasbender, D., & Meroni, M. (2016). Revisiting the concept of a symmetric index of agreement for continuous datasets. Scientific Reports, 6(1). https://doi.org/10.1038/srep19401
  28. Reshef, D. N., Reshef, Y. A., Finucane, H. K., Grossman, S. R., McVean, G., Turnbaugh, P. J., Lander, E. S., Mitzenmacher, M., & Sabeti, P. C. (2011). Detecting Novel Associations in Large Data Sets. Science, 334(6062), 1518–1524. https://doi.org/10.1126/science.1205438
  29. Székely, G. J., Rizzo, M. L., & Bakirov, N. K. (2007). Measuring and testing dependence by correlation of distances. The Annals of Statistics, 35(6), 2769–2794. https://doi.org/10.1214/009053607000000505
  30. Smith, E. P., & Rose, K. A. (1995). Model goodness-of-fit analysis using regression and related techniques. Ecological Modelling, 77(1), 49–64. https://doi.org/10.1016/0304-3800(93)e0074-d
  31. Nash, J. E., & Sutcliffe, J. V. (1970). River flow forecasting through conceptual models part I — A discussion of principles. Journal of Hydrology, 10(3), 282–290. https://doi.org/10.1016/0022-1694(70)90255-6
  32. Yang, J. M., Yang, J. Y., Liu, S., & Hoogenboom, G. (2014). An evaluation of the statistical methods for testing the performance of crop models with observed data. Agricultural Systems, 127, 81–89. https://doi.org/10.1016/j.agsy.2014.01.008
  33. Willmott, C. J. (1981). ON THE VALIDATION OF MODELS. Physical Geography, 2(2), 184–194. https://doi.org/10.1080/02723646.1981.10642213
  34. Willmott, C. J., Ackleson, S. G., Davis, R. E., Feddema, J. J., Klink, K. M., Legates, D. R., O'Donnell, J., & Rowe, C. M. (1985). Statistics for the evaluation and comparison of models. Journal of Geophysical Research: Oceans, 90(C5), 8995–9005. https://doi.org/10.1029/jc090ic05p08995
  35. Willmott, C. J., Robeson, S. M., & Matsuura, K. (2011). A refined index of model performance. International Journal of Climatology, 32(13), 2088–2094. https://doi.org/10.1002/joc.2419
  36. Legates, D. R., & McCabe, G. J. (1999). Evaluating the use of "goodness‐of‐fit" Measures in hydrologic and hydroclimatic model validation. Water Resources Research, 35(1), 233–241. https://doi.org/10.1029/1998wr900018
  37. Krause, P., Boyle, D. P., & Bäse, F. (2005). Comparison of different efficiency criteria for hydrological model assessment. Advances in Geosciences, 5, 89–97. https://doi.org/10.5194/adgeo-5-89-2005
  38. Kling, H., Fuchs, M., & Paulin, M. (2012). Runoff conditions in the upper Danube basin under an ensemble of climate change scenarios. Journal of Hydrology, 424-425, 264–277. https://doi.org/10.1016/j.jhydrol.2012.01.011
  39. Robinson, W. S. (1957). The Statistical Measurement of Agreement. American Sociological Review, 22(1), 17. https://doi.org/10.2307/2088760
  40. Robinson, W. S. (1959). The Geometric Interpretation of Agreement. American Sociological Review, 24(3), 338. https://doi.org/10.2307/2089382
  41. Ferri, C., Hernández-Orallo, J., & Modroiu, R. (2009). An experimental comparison of performance measures for classification. Pattern Recognition Letters, 30(1), 27–38. https://doi.org/10.1016/j.patrec.2008.08.010
  42. Ben-David, A. (2007). A lot of randomness is hiding in accuracy. Engineering Applications of Artificial Intelligence, 20(7), 875–885. https://doi.org/10.1016/j.engappai.2007.01.001
  43. Kubat, M., Matwin, S., & others. (1997). Addressing the curse of imbalanced training sets: One-sided selection. Icml, 97, 179.

Citations

  1. Yang, R., Wang, C., Harrison, M. T., Wang, X., Zhao, C., Zhou, M., Sun, C., & Liu, K. (2027). Nitrogen release–demand synchrony governs the productivity–environment trade-offs of organic nitrogen substitution. Agricultural and Forest Meteorology, 392, 111575. https://doi.org/10.1016/j.agrformet.2026.111575
  2. Yang, R., Wang, C., Nie, J., Harrison, M. T., Zhao, C., Zhou, M., Sun, C., & Liu, K. (2027). Designing sustainable rice-based production systems through waterlogging-adapted winter crop diversification. Agricultural Systems, 240, 105047. https://doi.org/10.1016/j.agsy.2026.105047
  3. Birhan, D. A., Singh, S., & Sharma, L. K. (2026). Simulating maize yield and nitrogen leaching under smart fertilizer strategies in subtropical sandy soils. Agronomy Journal, 118(5). https://doi.org/10.1002/agj2.70532
  4. Ebrahimzadeh, Z., Abdollahi, K., Bidaki, R. Z., & Eslamian, S. (2026). A comparative analysis of machine learning models for predicting groundwater and surface water in a stressed semi-arid watershed: The Khanmirza case study. Environmental Earth Sciences, 85(7). https://doi.org/10.1007/s12665-025-12801-4
  5. Wang, C., Yang, R., Harrison, M. T., Liu, D. L., Feng, P., Zhou, M., Zhang, Y., Nie, J., & Liu, K. (2026). Future climate change reshapes agroclimatic resources and intensifies waterlogging impacts on crop production. European Journal of Agronomy, 181, 128294. https://doi.org/10.1016/j.eja.2026.128294
  6. Upadhyay, P. K., Sarkar, S., Dey, A., Ekka, U., Rathore, S. S., Kumar, R., Shekhawat, K., Singh, R. K., G A, R., Peramaiyan, P., Gakhar, S., Sahoo, R. N., Mrunalini, K., Upadhyay, V., Sharma, N. K., Choudhary, S. K., Hasnain, M., Paliwal, A., Tyagi, V., … Singh, V. K. (2026). Development and validation of a precision nitrogen management app for enhancing sustainability in maize production. Results in Engineering, 29, 109306. https://doi.org/10.1016/j.rineng.2026.109306
  7. Özgen, Y., Bayraktar, N., & Ozkan, U. (2026). Phenotypic classification of opium poppy genotypes (Papaver somniferum L.) based on morpho-phenological traits. Scientific Reports, 16(1). https://doi.org/10.1038/s41598-026-38198-z
  8. Hurrah, I. M., Banday, L., Din, T. M. U., Rasool, I., & Mandal, S. (2026). Machine Learning for Data Mining in Plant Research. In CABI Biotechnology Series (pp. 236–258). CABI. https://doi.org/10.1079/9781800628649.0011
  9. Garnica, V. C., Shalizi, M. N., & Ojiambo, P. S. (2026). Performance and Stability of Winter Wheat Cultivars to Stagonospora nodorum Blotch Epidemics in Multi-Environment Trials. Phytopathology®, 116(3), 381–394. https://doi.org/10.1094/phyto-12-24-0398-r
  10. Albanito, F., Reinsch, S., Richards, M., Thomson, A. M., Cosby, B. J., Emmett, B. A., & Robinson, D. A. (2026). Frequent Droughts Reduce Carbon Stabilisation in Organo‐Mineral Soils. Global Change Biology, 32(1). https://doi.org/10.1111/gcb.70657
  11. Otto, R., García-Alvarado, J. J., Rocafull, E., Sierra Cornejo, N., Irl, S. D. H., Rodríguez Arvelo, F., Ruíz-Peinado, R., Fernández-Palacios, J. M., & de Nascimento, L. (2026). Modelling forest carbon stocks on the Canary Islands. Carbon Balance and Management, 21(1). https://doi.org/10.1186/s13021-026-00488-4
  12. Fabijan, A., Kolejwa, M., Zawadzka-Fabijan, A., Fabijan, R., Kosińska, R., Nowosławska, E., Socha-Banasiak, A., Lwow, N., Tkaczyk, M., Zakrzewski, K., Czkwianianc, E., & Polis, B. (2026). Assessing the Diagnostic Accuracy of BiomedCLIP for Detecting Contrast Use and Esophageal Strictures in Pediatric Radiography. Journal of Clinical Medicine, 15(3), 1150. https://doi.org/10.3390/jcm15031150
  13. Firdaus, F., Komaro, M., & Dwiyanti, V. (2026). Perbandingan Metode Holt-Winters dan SARIMA untuk Memprediksi Permintaan Produk Fashion pada PT XYZ. Factory Jurnal Industri, Manajemen Dan Rekayasa Sistem Industri, 4(2), 287–308. https://doi.org/10.56211/factory.v4i2.1401
  14. Seghouani, M. (2026). Development and implementation of a phosphorus module of the STICS crop model to simulate tropical and temperate agroecosystems functioning [Agence Bibliographique de l'Enseignement Supérieur]. In Bordeaux. https://doi.org/10.70675/cab46f5bza7fbz47caza0b5z9b2458fc3a29
  15. Marziotte, L., Carcedo, A. J. P., Mayor, L., Prasad, P. V. V., Peraza, J. A., & Ciampitti, I. A. (2025). An in‐silico approach exploring sorghum source:sink balance across sorghum hybrids: How many leaves are enough?. Crop Science, 65(1). https://doi.org/10.1002/csc2.21449
  16. Wang, C., Harrison, M. T., Liu, D. L., Yang, R., Zhou, M., Zhang, Y., & Liu, K. (2025). Dire need for quantification of environmental impacts associated with breeding climate-resilient crops. Agricultural Systems, 227, 104352. https://doi.org/10.1016/j.agsy.2025.104352
  17. Zhao, F., Zhang, Q., Wang, H., & Zhang, K. (2025). Year patterns of climate impact models' performance: Long-term simulation of rainfed spring wheat production using five crop models under various climate patterns. Agricultural Water Management, 318, 109704. https://doi.org/10.1016/j.agwat.2025.109704
  18. Bhattarai, B., Leasor, Z., & Reis, A. F. de B. (2025). Incorporating soil moisture data into a machine learning framework improved the predictive accuracy of corn yields in the U.S. Agricultural Water Management, 319, 109762. https://doi.org/10.1016/j.agwat.2025.109762
  19. van Versendaal, E., Hernandez, C. M., Kyveryga, P., Hefley, T., Van De Woestyne, B. W., Vara Prasad, P. V., & Ciampitti, I. A. (2025). Spatio-temporal yield variation and precipitation within a field. Computers and Electronics in Agriculture, 231, 109996. https://doi.org/10.1016/j.compag.2025.109996
  20. Wang, C., Harrison, M. T., Brown, H., Qiao, Y., Yin, X., Yang, R., Zhang, Y., Zhou, M., & Liu, K. (2025). Global sensitivity analyses prior to parameter calibration significantly improves prediction quality. Computers and Electronics in Agriculture, 238, 110750. https://doi.org/10.1016/j.compag.2025.110750
  21. Birhan, D. A., de Sã Leitão, D. A. H., Dias, H. B., Hopf, A., Singh, H., Hoogenboom, G., Katoch, K., & Sharma, L. K. (2025). Optimizing and applying the CSM-CERES-Maize model for enhanced maize yield and nitrogen management in Florida sandy soils. Computers and Electronics in Agriculture, 239, 111111. https://doi.org/10.1016/j.compag.2025.111111
  22. Cheung, M. W. M., Chaloupka, M., Mumby, P. J., & Callaghan, D. P. (2025). The spatial risk of cyclone wave damage across the Great Barrier Reef. Ecological Informatics, 89, 103175. https://doi.org/10.1016/j.ecoinf.2025.103175
  23. Gaso, D. V., Cue La Rosa, L. E., Puntel, L. A., Rattalino Edreira, J. I., de Wit, A., & Kooistra, L. (2025). Predicting spatial and temporal variability in soybean yield using deep learning and open source data. European Journal of Agronomy, 164, 127498. https://doi.org/10.1016/j.eja.2024.127498
  24. Garcia-Prats, A., Carricondo-Antón, J. M., Ippolito, M., De Caro, D., Jiménez-Bello, M. A., Manzano-Juárez, J., & Pulido-Velazquez, M. (2025). High-resolution spatially interpolated FAO Penman-Monteith crop reference evapotranspiration maps of Sicily Island (Italy) and Jucar River system (Spain) using AgERA5 and ERA5-Land reanalysis datasets. Journal of Hydrology: Regional Studies, 60, 102531. https://doi.org/10.1016/j.ejrh.2025.102531
  25. Salekin, S., Bloomberg, M., Xi, B., Liu, J., Liu, Y., Li, D., & Mason, E. G. (2025). Hybrid ecophysiological growth model for deciduous Populus tomentosa plantation in northern China. Forest Ecosystems, 12, 100270. https://doi.org/10.1016/j.fecs.2024.100270

1–25 of 51