Memory limitations for categorical variables in generalized linear model?
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm using GeneralizedLinearModel.fit with a large number of non-categorical predictors and one categorical predictor. I find that I run into memory limitations if I either have too many categories or have too many non-categorical predictors. Can anyone explain what GeneralizedLinearModel.fit actually does with a categorical predictor variable? Does it just turn it into a bunch of non-categorical binary predictors behind-the-scenes? What factors lead to memory problems when using GeneralizedLinearModel.fit?
Thanks for any advice that can be offered.
댓글 수: 0
답변 (1개)
Shashank Prasanna
2013년 3월 3일
Categorical predictor variable are converted to dummy variables internally. Size depends on number of categorical variables and levels etc. This is very problem dependent since I don't know how many observations you have and how many variables. Memory issues can be attributed to how much RAM or memory you have and also if you are are on a 32 or a 64 bit environment. hth
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Categorical Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!