haifengl / smile

Statistical Machine Intelligence & Learning Engine
https://haifengl.github.io
Other
6.02k stars 1.13k forks source link

Multivariate Linear Regression (OLS) #676

Closed patrick-frank-bsi closed 3 years ago

patrick-frank-bsi commented 3 years ago

I want to use the provided OLS.fit(Formula.lhs("y"), data) to predict multiple response variables from multiple features.

Can I modify the Formula to make the model accept multiple outputs? Or is there another way to do this?

haifengl commented 3 years ago

There is no direct to fit multiple response variables. You may fit each one separately.

patrick-frank-bsi commented 3 years ago

I understand, thanks for the reply!

Could be a feature request, but otherwise that ticket can be closed.