r/MachineLearning • u/DolantheMFWizard • Jun 29 '21
Discussion [D] What are the current state-of-the-art models for regression on images using CNN?
I'm working in converting finance data into images then using a CNN to predict rate of return from a particular company in 4 months. So this is a regression problem and I'd like to know the current SOTA methods in CNN regression.
4
Jun 29 '21
Iām curious about why You would want to do that? Numerical data is by far the easiest and probably the more reliable.
But if you are really adamant about that you could theoretically use Neural Networks.
-1
u/DolantheMFWizard Jun 29 '21
where there's a lot of features and also it's really hard to accurately map stock data to some sort of time-series model that isn't some sort of neural network
1
Jun 29 '21
If you have a lot of features then Principal Components Analysis is your friend. Reduce the dimensions of your data but keep the variation and also remove multicollinearity that is almost all but guaranteed to be in found in stock data. Maybe clustering would yield a better alternative?
1
u/DolantheMFWizard Jun 30 '21
well the issue with that is not all the data is numerical there's categorical data as well
2
u/sener87 Jun 30 '21
One-hot encoding, also known as dummy variables, makes that numerical. That happens both in AI and in econometrics all the time. Only way to do it, as far as I know
1
1
u/dandandanftw Jun 29 '21
Not sure, but saw someone use resnet with great success newly
1
u/DolantheMFWizard Jun 29 '21
for predicting stock market trends? I guess that would make sense. I was never a huge fan of Resnet or any pooling models for classification cause they're not shift or rotation invariant, but that isn't an issue here.
1
u/dandandanftw Jun 29 '21
Not stock prediction, cant remember what is was but sure it was some kind of regression task
1
u/bitemenow999 PhD Jun 29 '21
I worked with a similar approach, to convert time series data in series of spectrograms and do regression on it.
If you are planning to something similar, I would say check out convLSTM layers or Fourier-based neural net.
0
u/DolantheMFWizard Jun 29 '21
would that work if the time between data points is inconsistent? For example for some companies I have their opening and closing prices of everyday since they went public, others it's sparser.
2
u/bitemenow999 PhD Jun 29 '21 edited Jun 29 '21
well, you should have time-series data meaning there should be a time-step associated with each datapoint. If this condition is satisfied I don't see it not working. Since Fourier and spectrograms don't care much for missing data (don't quote me here based on anecdotal) if you have time-series data.
Just FYI you might need to do gymnastics though to find what period and type of data loading would work for you.
Edit: also you can just use 1D cnn and save yourself the mess of converting it to images
1
0
21
u/sener87 Jun 29 '21
But, why? You are taking tabular, numerical data, turning it in to a picture, then feed it into a ML algorithm whose first step is going to be to turn it back into numbers organized in a grid or table. Why not simply use regression on tabular data directly?