BerkeleyLab / inference-engine

A deep learning library for use in high-performance computing applications in modern Fortran
Other
25 stars 6 forks source link

Feature: filter training data for maximal information entropy via flat multidimensional output-tensor histograms #169

Closed rouson closed 2 months ago

rouson commented 2 months ago

This PR

  1. Adds cloud-microphysics/app/train-on-flat-distribution.f90, which takes the same command-line arguments as train-cloud-microphysics.f90 plus a new --bins argument that sets the number of bins to be used in each direction in phase space (i.e., output variable) when filtering training data so that each bin is occupied by at most one data point (i.e., one input/output tensor pairing).
  2. Works around a compiler bug that prevents the use of the new activation_factory_method function on the right-hand side of intrinsic assignments in inference_engine_t user-defined structure constructors.