pycaret / pycaret

An open-source, low-code machine learning library in Python
https://www.pycaret.org
MIT License
8.83k stars 1.76k forks source link

I am applying muliple regression methods given in Pycaret libreary and then i am getting final aggregating results of these methods through the blending. #3139

Closed Gyagupta closed 1 year ago

Gyagupta commented 1 year ago

I am applying multiple regression methods using Pycaret and then i am getting final aggregating (Y) results of these methods through the blending. but i am not able to get the final regression equation (with coefficient) after using blender function for multiple regression methods. how can i get the final regression equation (After blending) also?

please help!!

Blending models

blender = blend_models(estimator_list = [tuned_decision_tree, tuned_bayesian_ridge, tuned_linear_regression])

Originally posted by @Gyagupta in https://github.com/pycaret/pycaret/discussions/3138

ngupta23 commented 1 year ago

You can not get a "regression equation" for an ensemble model (AFAIK) if that is what you are asking for. Have you seen this ability in any other library? If so, please share the details. Thanks!

Gyagupta commented 1 year ago

Thank you for the repsonse sir. Is there ANY other way to get the "regression equation" after using 'blending' or 'stacking' function, any soruce of maths given anywhere that indicates the background process of how esemble model works? From which we can we do it manually.

ngupta23 commented 1 year ago

It uses the following scikit model under the hood. Please refer to its documentation on how it works.

https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.VotingRegressor.html