Need advice for regression model on astrophysical data.
My goal is to estimate the mass of supermassive blackholes and compare neural net regression to more classical methods. My dataset consists of ~14.000 datapoints each having 22 photographic measurements plus their error, plus some ROSAT eV value and error. In total 46 values per datapoint.
Classical approaches like LASSO, RidgeCV, HuberRegressor land at around 0.5 rmse, which is a good result and consistent with previous research. For some approaches I didn't even need to tweak the default settings.
So for the neural nets, first I did was to StandardScaler the dataset and do random grid search on:
- Hidden layers between 1-5
- Amount of neurons between 64-1024 (decreasing with each layer)
- Learning rate linspace(-5, -2, 100)
- Optimizers: Adam, RMSProp, SGD
- Batchsize: between 4-32
- Epochs: between 4-40
Somehow it is really difficult to get the rmse below 0.6. Sometimes the validation rmse during training comes close to 0.5, but if I do my own validation I land consistently between 0.6-0.7 rmse. Thats weird, right? If you pass a validation_split the network cannot really overfit to that validation set? I calculate rmse like np.sqrt(np.mean(np.square(err))) look at the code here
I also tried some other stuff like adding dropout or batchnormalisation layers, and trying some other handcrafted architectures, but nothing really makes a big difference or is just worse.
There is other research yielding much better estimations like AGNet and some other, but they use deep networks with time series data (either multiple measurements of the same object, or by sorting the dataset by redshift). I have none of that, and my goal is a comparison to the classical methods which right now give better results almost instantanious with default settings..
Any ideas on how to improve the results are very much appreciated!
Posted Sep 11, 2024, 7:38 AM UTC
At 14000 points with 46 dimensions NNs are just not getting enough to build the non-linear dimensions. To be honest in a case like this I would try a SVM with linear kernel to start and later go to RBF if it is good
Thanks for your input! Well, my goal is to compare neural methods with "classic" methods (I'm writing my bachelors thesis on this), and I am already getting good results with the other methods, may be I'll ad SVM and RBF to the bunch, though.
May be you are right about the dataset beeing too small, AGNet was trained on almost 40.000 points with much more data on every point.
May be this will simply be the conclusion of my thesis, but I want to make shure I didn't miss anything to make the neural nets more performant.
Also any Idea why the validation during training is so much better than in my testing stage? Are those nets simply overfitting?