smartcorelib / smartcore

A comprehensive library for machine learning and numerical computing. The library provides a set of tools for linear algebra, numerical computing, optimization, and enables a generic, powerful yet still efficient approach to machine learning.
https://smartcorelib.org/
Apache License 2.0
671 stars 76 forks source link

Add predict_proba method for LogisticRegression #278

Closed geosarr closed 2 months ago

geosarr commented 2 months ago

I'm submitting a

Current Behaviour:

Hi, the struct LogisticRegression does not have a method that directly returns the estimated probabilities.

Expected Behaviour:

It will be great to add a predict_proba method like (https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html), in order to account for unbalanced datasets.

Do you want to work on this issue?

yes.

Mec-iS commented 2 months ago

Hey, thanks for your interest. Please run a search before opening issues as this is currently already addressed and there is also a PR open that needs some additional working if you want to contribute:

https://github.com/smartcorelib/smartcore/issues/50 https://github.com/smartcorelib/smartcore/pull/211