shankarpandala / lazypredict

Lazy Predict help build a lot of basic models without much code and helps understand which models works better without any parameter tuning
MIT License
2.76k stars 317 forks source link

added support to multiple custom metrics #449

Closed aditya-29 closed 2 months ago

aditya-29 commented 2 months ago

Pull Request Description:

Hello maintainers,

I've created this pull request to implement a feature [add support to have multiple custom metrics]

Changes Made:

  1. Support for sklearn version change - https://github.com/shankarpandala/lazypredict/pull/444
  2. Cleaned to the code such that LazyClassifier and LazyRegressor has same structure
  3. Added support to have multiple custom metrics in LazyRegressor and LazyClassifier. Now, users can either pass a function or list of functions to the parameter "custom_metric".

Testing Done:

Tested the code against a sample classification and regression task. Tested the functionality of verbose, ignore warnings and custom_metric

Thank you for considering my contribution. Looking forward to your feedback.

Best regards, Aditya