fitrlinear for large data set
Mostrar comentarios más antiguos
I am trying a large regression/lasso model with n=90000 rows and p=500 columns
[mhat,FitInfo]=fitrlinear(X,y,'Learner','leastsquares');
I tryied also additional parameters
'solve','sparsa'
'Regularization','lasso'
The problem is that, when X has 200 columns or more, all the elements of mhat.Beta are ZERO
Do you have any suggestion about that?
Thanks,
Alessandro
1 comentario
Alessandro Fassò
el 25 de Feb. de 2021
Respuestas (1)
Aditya Patil
el 29 de Mzo. de 2021
0 votos
With high dimensional data, it is expected that some of the predictors won't have much effect on the response.
As a workaround, you can try to reduce the dimension using Dimensionality Reduction and Feature Extraction techniques.
2 comentarios
Alessandro Fassò
el 29 de Mzo. de 2021
Aditya Patil
el 29 de Mzo. de 2021
Can you provide the data so that I can reproduce the issue? Also provide the output of the version command.
Categorías
Más información sobre Regularization en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!