The provided code allows the generation and application of machine learning surrogate models based on a data set of template model in- and outputs. Example training and test data originates from the kinetic multilayer model of aerosol surface and bulk chemistry (KM-SUB, https://doi.org/10.5194/acp-10-3673-2010). Artificial neural networks are implemented with the python library Keras, polynomial chaos expansion with the Matlab software UQLab. Further information can be found in the provided files. An overview is also given in file contents.txt. This code is the product of a collaboration between: Max Planck Institute for Chemistry, Hahn-Meitner-Weg 1, 55128 Mainz, Germany Institute for Atmospheric and Climate Science, ETH Zürich, 8092 Zü...