TheAlgorithms / Python

All Algorithms implemented in Python
https://thealgorithms.github.io/Python/
MIT License
194.33k stars 45.65k forks source link

Create error handling function in linear regression algorithm of ML #11534

Open pahalsrivastava opened 2 months ago

pahalsrivastava commented 2 months ago

What would you like to share?

We can add error handling function to the linear regressio algorithm in the ML folder; so that it can handle errors and still run the linear regression algorithm

Additional information

No response

tianyizheng02 commented 1 month ago

The linear regression algorithm in this repo should be reimplemented anyway (see #8847). As such, this additional handling should be either incorporated into the reimplementation PR or saved for a later PR.

In any case, what sort of error handling are you suggesting? Input validation, floating-point errors, etc?

sOnU1002 commented 1 month ago

i can work on this pease assign me this