Questions tagged [lars]
22 questions
0
votes
0 answers
How to calculate the p-values in scikit-learn Lars regression
I'm using Lars() function from sklearn.linear_model with thousands of variables (X) and I want to know the p-value of each variable.
Example:
import pandas as pd
from sklearn.linear_model import Lars
url =…

Antuan Rage
- 15
- 5
0
votes
1 answer
Why I am having this problem with Lars framework in Python?
I am using Lars framework (https://lars.readthedocs.io/en/latest/index.html)
to analyze sample logs from an Apache Server stored in a txt file.
I want to store the path_str of each log in a list so I am doing this:
from lars import apache
path_logs…

Rodrigo Montes
- 1
- 2
0
votes
1 answer
How do I expand the item set for this grammar?
I have this grammar
E -> E + i
E -> i
The augmented grammar
E' -> E
E -> E + i
E -> i
Now I try to expand the item set 0
I0)
E' -> .E
+E -> .E + i
+E -> .i
Then, since I have .E in I0 I would expand it but then I will get another E rule, and…

geckos
- 5,687
- 1
- 41
- 53
0
votes
1 answer
Retrieve coefficients from R's train function in caret using forward regression and/or LARS
I’m working in R and exploring the use of caret for variable selection and weighting using several methods. Here I’m exploring using forward stepwise and least angular regression (LARS), using tuning parameters for each. In the code below, I’ve…

Drew
- 135
- 4
- 11
0
votes
0 answers
Lasso regression makes a mistake by a constant
I'm trying to apply a lasso regression for my data. I'm using lars package for R. Using coef function, I get coefficients of lasso model and using them, I plot this model. But this model is always wrong by a constant (blue color).
FX <- cbind(1, X,…

Rostislav Shtanko
- 704
- 2
- 9
- 30
0
votes
1 answer
Changing plot title from lars package
Ive been using the lars package to do some work with lasso regressions and have figured out a lot of it. The graph it outputs is still kind of a mystery to me. I tried to edit the plot.lars function to change the plot title, tried inserting…

Trevor Nederlof
- 2,546
- 5
- 22
- 40