fitrlinear for large data set
이전 댓글 표시
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개)
Aditya Patil
2021년 3월 29일
0 개 추천
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
Alessandro Fassò
2021년 3월 29일
Aditya Patil
2021년 3월 29일
Can you provide the data so that I can reproduce the issue? Also provide the output of the version command.
카테고리
도움말 센터 및 File Exchange에서 Regularization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!