The role of hyperparameters in machine learning models and how to tune them

Type: Article

Publication Date: 2024-02-05

Citations: 18

DOI: https://doi.org/10.1017/psrm.2023.61

Abstract

Abstract Hyperparameters critically influence how well machine learning models perform on unseen, out-of-sample data. Systematically comparing the performance of different hyperparameter settings will often go a long way in building confidence about a model's performance. However, analyzing 64 machine learning related manuscripts published in three leading political science journals (APSR, PA, and PSRM) between 2016 and 2021, we find that only 13 publications (20.31 percent) report the hyperparameters and also how they tuned them in either the paper or the appendix. We illustrate the dangers of cursory attention to model and tuning transparency in comparing machine learning models’ capability to predict electoral violence from tweets. The tuning of hyperparameters and their documentation should become a standard component of robustness checks for machine learning models.

Locations

  • Political Science Research and Methods - View - PDF
  • ORCA Online Research @Cardiff (Cardiff University) - View - PDF

Similar Works

Action Title Year Authors
+ Hyperparameter Optimization: Foundations, Algorithms, Best Practices and Open Challenges 2021 Bernd Bischl
Martin Binder
Michel Lang
Tobias Pielok
Jakob Richter
Stefan Coors
Janek Thomas
Theresa Ullmann
Marc Becker
Anne‐Laure Boulesteix
+ Replication Code for: Bias and Variance in Multiparty Election Polls 2023 Peter Selb
Sina Chen
John Körtner
P.P.J. van den Bosch
+ Principled Estimation of Regression Discontinuity Designs With Covariates: A Machine Learning Approach 2019 Lefteris Jason Anastasopoulos
+ PDF Chat Beyond algorithm hyperparameters: on preprocessing hyperparameters and associated pitfalls in machine learning applications 2024 Christina Sauer
Anne‐Laure Boulesteix
Luzia Hanßum
Farina Hodiamont
Claudia Bausewein
Theresa Ullmann
+ EZtune: A Package for Automated Hyperparameter Tuning in R 2023 Jill F. Lundell
+ PDF Chat A Large-scale Empirical Study on Large Language Models for Election Prediction 2024 Changping Yu
Zhaotian Weng
Yuangang Li
Zheng Li
Xiyang Hu
Yue Zhao
+ PDF Chat Hyperparameter optimization: Foundations, algorithms, best practices, and open challenges 2023 Bernd Bischl
Martin Binder
Michel Lang
Tobias Pielok
Jakob Richter
Stefan Coors
Janek Thomas
Theresa Ullmann
Marc Becker
Anne‐Laure Boulesteix
+ PDF Chat Metalearners for estimating heterogeneous treatment effects using machine learning 2019 Sören R. Künzel
Jasjeet S. Sekhon
Peter J. Bickel
Bin Yu
+ Hyperparameter Tuning and Model Evaluation in Causal Effect Estimation 2023 Damian Machlanski
Spyridon Samothrakis
Paul B. S. Clarke
+ How Much Should We Trust Instrumental Variable Estimates in Political Science? Practical Advice Based on Over 60 Replicated Studies 2023 Apoorva Lal
Mac Lockhart
Yiqing Xu
Ziwen Zu
+ PDF Chat How Much Should We Trust Instrumental Variable Estimates in Political Science? Practical Advice based on Over 60 Replicated Studies 2021 Apoorva Lal
Mackenzie Lockhart
Yiqing Xu
Ziwen Zu
+ Principled estimation of regression discontinuity designs 2019 Lefteris Jason Anastasopoulos
+ Principled estimation of regression discontinuity designs 2019 Lefteris Jason Anastasopoulos
+ Electoral predictors of polling errors 2023 Sina Chen
John Körtner
Peter Selb
Jens Wiederspohn
+ Empirical and Computational Methods for Electoral Politics 2019 Benjamin Fifield
+ PDF Chat How Much Should We Trust Instrumental Variable Estimates in Political Science? Practical Advice Based on 67 Replicated Studies 2024 Apoorva Lal
Mackenzie Lockhart
Yiqing Xu
Ziwen Zu
+ Robustness of Algorithms for Causal Structure Learning to Hyperparameter Choice 2023 Damian Machlanski
Spyridon Samothrakis
Paul B. S. Clarke
+ PDF Chat A Comparative Study of Hyperparameter Tuning Methods 2024 Subhasis Dasgupta
Jaydip Sen
+ Small data problems in political research: a critical replication study 2021 H. de Vos
Suzan Verberne
+ And the Winner is ...: Bayesian Twitter-based Prediction on 2016 U.S. Presidential Election 2016 Elvyna Tunggawan
Yustinus Eko Soelistio

Works That Cite This (0)

Action Title Year Authors