What is the difference between fitglm and fitclinear?

16 ビュー (過去 30 日間)
Mandeep
Mandeep 2022 年 11 月 14 日
回答済み: Krishna 2022 年 11 月 18 日
I am creating a logistic regression model on MATLAB which will be a binary classifier (outcome is the label 'good' or 'bad'). I have found what appears to be two functions which can fit a logistic model:
  1. fitglm()
  2. fitclinear()
Can someone please help me understand the difference? So far I have been using fitclinear and enjoying it.
Thanks

回答 (1 件)

Krishna
Krishna 2022 年 11 月 18 日
fitclinear trains linear classification models for two-class (binary) learning with high-dimensional, full or sparse predictor data.
For reduced computation time on a high-dimensional data set that includes many predictor variables, you can train a linear classification model by using fitclinear. However, for low- through medium-dimensional predictor data sets, see Alternatives for Lower-Dimensional Data.
You can follow the above chart to get an understanding of how fitglm is used for Logistic regression without regularization.

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by