How to make logistic regression model that obtained from literature review?

1 次查看(过去 30 天)
In case I know the full formula of the multivariate logistic regression model (such as exactly number of estimated intercept and variable coefficients of model parameters and the predictor variables) from the literature review, how can I make a model function follow formula to implement in the future?
for example, I know the value of b0, b1, ... and know what the predictors (x1, x2, ...) is
probability_y = exp(Z) / (1+exp(Z))
Z = b0 + b1x1 + b2x2 + b3x3 + b4x4 + ...

回答(1 个)

Krishna
Krishna 2023-10-3
编辑:Krishna 2023-10-3
Hello Kanokkwan,
It seems like you know the number of features as well as the value of weights you want to use in logistic regression. Now you want to train the network using that features and pre trained weights. For this you can use transfer learning. Please go through this documentation to learn more about transfer learning:
Also, logistic regression follows the same formula provided by you. So if you want to train the network from scratch use built in function provided by MATLAB. Please go through this documentation to learn more about logistic regression:

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by