eriklindernoren / ML-From-Scratch

Machine Learning From Scratch. Bare bones NumPy implementations of machine learning models and algorithms with a focus on accessibility. Aims to cover everything from linear regression to deep learning.
MIT License
23.87k stars 4.58k forks source link

can you add code for intercept /bias to regressions #94

Open Sandy4321 opened 3 years ago

Sandy4321 commented 3 years ago

great code but can you add code for intercept /bias to regressions like https://github.com/eriklindernoren/ML-From-Scratch/blob/master/mlfromscratch/examples/lasso_regression.py

for example you can use https://github.com/wiqaaas/youtube/blob/master/Machine_Learning_from_Scratch/Ridge_Regression/Ridge_Regression_using_Gradient_Descent.ipynb

usually it is used by default https://scikit-learn.org/stable/modules/generated/sklearn.svm.LinearSVC.html fit_interceptbool, default=True Whether to calculate the intercept for this model. If set to false, no intercept will be used in calculations (i.e. data is expected to be already centered).

rishabh-jain14 commented 3 years ago

Hey there, is the issue currently up? i would like to work on it as a part of my Microsoft research assessment. Please Assign it to me by today itself. Thanks,