Neural Networks Optimized by Genetic Algorithms in Cosmology

Isidro Gómez-Vargas, Joshua Briones Andrade, J. Alberto Vázquez
9/6/2022
astro-ph.IMastro-ph.COstat.ML

Official code: igomezv/nnogada (8 stars, Python, MIT, last commit 2025-04-25).

Abstract

The applications of artificial neural networks in the cosmological field have shone successfully during the past decade, this is due to their great ability of modeling large amounts of datasets and complex nonlinear functions. However, in some cases, their use still remains controversial because their ease of producing inaccurate results when the hyperparameters are not carefully selected.

Show full abstract

In this paper, to find the optimal combination of hyperparameters to artificial neural networks, we propose to take advantage of the genetic algorithms. As a proof of the concept, we analyze three different cosmological cases to test the performance of the architectures achieved with the genetic algorithms and compare them with the standard process, consisting of a grid with all possible configurations. First, we carry out a model-independent reconstruction of the distance modulus using a type Ia supernovae compilation. Second, the neural networks learn to infer the equation of state for the quintessence model, and finally with the data from a combined redshift catalog the neural networks predict the photometric redshift given six photometric bands (urgizy). We found that the genetic algorithms improve considerably the generation of the neural network architectures, which can ensure more confidence in their physical results because of the better performance in the metrics with respect to the grid method.

View on arXivView PDF

Code Implementations(1)

igomezv/nnogadaOfficial100%
MIT

Neural Networks Optimized by Genetic Algorithms for Data Analysis

82PythonApr 9, 20211 years agoMIT
cosmologygenetic-algorithmhyperparameter-tuningmachine-learningneural-network

Similar Papers

Cite this paper

@article{gmezvargas2022neural,
  title  = {Neural Networks Optimized by Genetic Algorithms in Cosmology},
  author = {Isidro Gómez-Vargas and Joshua Briones Andrade and J. Alberto Vázquez},
  year   = {2022},
  eprint = {2209.02685},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.02685}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.02685.svg)](https://codeofpaper.com/paper/2209.02685)

Discussion