I'm attempting to design a neural network to approximate SED fitting.

I have a set of 20,000 runs through the SED fitting program, MAGPHYS.

Each run contains:

  •  A set of 43 input features, which contains 21 values representing a histogram of observed radio fluxes over wavelength and 21 associated values representing signal to noise ratio for each flux value, as well as 1 redshift value
  • 32 useful output features (there are other outputs from the system, but I don't need them).

I've built a neural network in Keras to attempt to learn this function. Currently I'm using 40 hidden nodes per layer and 4 hidden layers, in addition to one input and one output layer. The input and hidden layers are all using TanH activation functions and the output layer is using a Linear activation function.

I am normalising my input and output data to within 0 and 1 using minmax normalisation.

I've tried a lot of different combinations of neural network parameters, such as:

  • Different optimisers (Stochastic gradient descent, Adagrad, Adam etc.) 
  • Different learning parameters (momentum, learning rate, weight decay)
  • Different number of hidden nodes and different number of hidden layers
  • Using a TanH output layer
  • Normalising my input data between -1 and 1 instead of 0 and 1.
  • Using only the 21 flux readings without the signal to noise ratios (reducing the inputs to the system to 22 rather than 43)

Regardless of any of these parameters, the network always seems to output values that are very close to the averages for each of the 32 outputs. Sometimes the network will output exactly the same number for every test, or sometimes these values will vary slightly, but will still be a value very close to the average.

What would cause my neural network to always output values like this?

Am I doing something wrong with my network design, or is there something else that I'm missing?

Is there anything I can try in an effort to get my network to actually learn this function correctly?

http://www.iap.fr/magphys/magphys/MAGPHYS_files/readme.pdf

More Samuel Foster's questions See All
Similar questions and discussions