Lasso regression is a form of regression analysis used for variable selection and regularization. Use this tag for programming questions related to Lasso regression only. You can ask statistical questions on Cross Validated instead
Questions tagged [lasso-regression]
457 questions
-1
votes
1 answer
LASSO regression implementation without python libraries
I am a python newbie and seriously searching for a python implementation of LASSO without the use of python libraries (e.g sklearn etc.)
I am particularly interested in this to help me understand how the underlying maths translates to python code.…

Ziggey
- 13
- 7
-1
votes
1 answer
Why the legend is not correct in R
I am trying regression with modified iris dataset using msgps package in R:
iris2 = iris
iris2$Species = as.numeric(iris2$Species)
str(iris2)
'data.frame': 150 obs. of 5 variables:
$ Sepal.Length: num 5.1 4.9 4.7 4.6 5 5.4 4.6 5 4.4 4.9…

rnso
- 23,686
- 25
- 112
- 234
-1
votes
1 answer
how to call python and sklearn from matlab?
I need to call sklearn function on matlab.
I have heard that there are some problems in calling numpy function and sklearn is based on numpy.
Is there any guide about that?

Donbeo
- 17,067
- 37
- 114
- 188
-2
votes
2 answers
I got an error while running lasso regression method
raise NotFittedError(msg % {'name': type(estimator).name})
sklearn.exceptions.NotFittedError: This Lasso instance is not fitted
yet. Call 'fit' with appropriate arguments before using this
estimator.
from sklearn import datasets
from…

anna
- 1
- 3
-3
votes
1 answer
How to get early stopping for lasso regression
I have a problem. Is there an option to get early stopping? Because I saw on a plot that I get Overfitting after a while, so I want to get the most optimal.
dfListingsFeature_regression =…

Test
- 571
- 13
- 32
-3
votes
1 answer
'normalize=True' parameter needed in Lasso and Ridge Regressions, if features already scaled?
I have my data already standardized with the help of StandardScaler() in Python. while applying Lasso Regression do I need to set the normalize parameter True or not and why?
from sklearn import…

Vatsal Gupta
- 471
- 3
- 8
-4
votes
1 answer
How to generate 1000 data sets and use Ridge and Lasso regression for all of them in R?
So I need to generate 1000 data sets with 200 observations in R from this model: model
and use Lasso and Ridge regression for all of them. Then I need to get beta_j coefficients for Lasso and Ridge. Can anyone help? Thank you already!