Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
So this is a question has vaguely been asked before (see 1 and 2) but I have not been able to find a conclusive answer for anywhere.
Essentially I have panel data for 300 US firms between 2012-2020 ...
I have a large dataset with 10,000+ individuals and many many biological features (>5000). And I want to use these features to build a linear model (e.g. elastic net) to predict their clinical ...
Background: Previously, I ran my elastic net model on class-imbalanced data. I found out this is bad practice generally, so I downsampled the data to resolve the class imbalance.
...
I have data with n = 80 and 10 predictors, and ran MI using MICE, followed by Variable Selection for Multiply Imputed Data using ‘miselect’ and finally have 4 non-zeroed coefficients.
Since ...
We built the elastic net model on a set of my features and control features.
With that, we did various experiments to discuss the importance of the selected features.
For example, we showed more of my ...
I understand that lambda.1se is the largest lambda that gives MSE within one standard error of the minimum MSE. But how is the standard error calculated exactly.
I have a set of 200 genes that are split into numerical high and low, encoded as (1/2).
I have set this variable this way for linearity of the model. Also, stratified by cancer and normal cases.
I ...
I am looking for the best $\alpha$ (=ratio between L1 and L2 penalty) and $\lambda$ (=penalty strength) for my elastic net regression model, using the R package ...
I have a very large dataset, and I'm trying to find which variable(s) may describe the truth about a certain variable. I've considered just doing OLS on variables that make logical sense. But I've ...
I have 444 cases and 60ish predictors that suffer from collinearity. The predictors fall into three categories (vol, thickness and demographics). I would prefer to subdivide my cases into 4 (age) ...
I am fitting an ElasticNet model using an array of values for alpha and l1_ratio.
I then plot the result of the negative root mean squared error from cross validation in a heatmap, which gives me the ...
If you look at GLMNET Vignette, it shows that it solves for the gaussian case:
But why does it divide the value of $\parallel \beta \parallel_2^2$ by 2?
I am using elasticnet for the purpose of determining feature importance. In case it is relevant, this is a high-dimensionality model with $n\ll p$.
I have seen cases before where Lasso, i.e. logistic ...
Is the use of elastic net for variable selection purposes a form of data dredging? I switched from using stepwise regression procedure for variable selection to elastic net, but I actually do not know ...
I am trying to fit a cumulative probability model (ordinal logistic regression with 17 categories and 827 observations) with elastic net penalty using the ordinalNet...
Let's assume I want to construct a regression model to predict a specific outcome variable but I don't have enough data to do a proper train-test set split (n = 200). I have 7 predictor variables (...
I wrote a code performing an elastic net regression with a 10-fold-crossvalidation. the original dataset has 190 variables and 1402 observations. The result were 70 remaining coefficients in the final ...
Is there any risk or disadvantage to set normalize=True when using ridge, lasso or elasticnet or does it only have benefits? And what is the impact on the range of alpha if it is set to True, does it ...
In a model run of elastic net logistic regression, I encountered a very counterintuitive coefficient. I have looked into the data, model and script, but, I still cannot seem to wrap my head around the ...
like lasso and ridge, elastic net can also be used for classification
by using the deviance instead of the residual sum of squares. This
essentially happens automatically in caret if the response ...
In their paper (here), Tibshirani et al defined the lasso as the solution
to
$$
\text{argmin}_{\boldsymbol{\beta}}\frac{1}{2}\left\Vert \mathbf{y}-\mathbf{X}\boldsymbol{\beta}\right\Vert ^{2}+\lambda\...
I have a discussion with my supervisor about the usage of AUC to determine, basically, the importance of three different drivers consisting of multiple variables each. He claims I can look into the ...
I am struggling with the interpretation of my elastic net results and hope someone might be able to help ...
I've done an elastic net regression in R (based on glmnet), with different levels of alpha ...
I am, currently, looking into the relative importance of the different predictors I received from my cv.glmnet coefficients term. But, it seems like there is ...
I know, the question has been posted many times, but none of the answers fixed my problem. I still get different results each time I run the cv.glmnet on my data. ...
I have a binary dataset of infected trees consisting of a lot of independent variables that can be divided into three main groups of drivers. Let's intuitively call them ...
I am performing an elastic net regression on my data n = 34, p = 46
I first built the model using the "caret" package with the cross validation method to set the optimal alpha and lambda ...
I have been analyzing some data to perform elastic net and I am a little confused which function should I use to build a model for elastic net.
After performing CV with altering alpha with cv.glmnet() ...
In one online course on machine learning the lecturer said that the main advantage of elastic net penalty is the grouping effect.
But also he said that this effect is not ideal because all correlated ...
No matter how much I google, I cannot find the answer to this simple question.
Say you do 10-fold, repeated (5x) CV logistic regression with elastic net regularization.
For alpha you try ...
I have a small data set (N = 200, 9 predictors, 1 continuous outcome variable) with a lot of noise.
I am not able to get "more" data. I want to achieve variable selection.
If I split up the data set ...
I have built an elastic net model for classification purpose, but I haven't done multi-collinearity check. Would doing multicollinearity check and then feeding the variables to the model have an ...
I have a dataset with 13 predictors and 330 observations (if need be, this can be combined with a second data set which we originally meant to use as replication data for a total of 550 observations). ...
Since the lasso is a subset of the elastic-net, shouldn't a continuous grid of the ridge and lasso paramaters in the elastic-net always outperform the lasso regression?
I've employed Elastic net to fit a logistic model with predictors that displayed high degrees of correlation between themselves. I wanted to be able to see which predictors significantly influenced ...
I am using the ElasticNet library from sklearn. I am using one predictor which takes values in the range [827.559, 827.5625].
When I fit the model using this ...
When performing regularised regression, such as LASSO, ridge regression and elastic net, I understand that it is important to scale variables before calculating and applying a penalty term. I have ...
So I was reading the original Elastic Net paper by Zou, Hastie and I got slightly confused in the second section, where the reduction from Elastic Net to Lasso is performed.
They propose that an ...
I was training an Elastic Net using scikit-learn and I bumped into the following problem. I am getting different prediction values for the same input data and model. What is happening? Am I missing ...
I was reading about the sparse principal component approach by Zou, Hastie and Tibshirani but I do not quite understand how they handle the $p \gg n$ case in their paper.
To derive the sparse axis, ...
I just read this question but all the answers are focused on why this is happening when using a neural network.
I'm using random forest, elastic net and Cubist. Both elastic net and Cubist have lower ...
As a followup to this question, how does scikit-learn implementation of Lasso (and coordinate_descent algorithm) uses the tol parameter in practice?
More precisely, ...
I have 10 responses and 20 predictors for which I measured values in two conditions.
I ran elastic model for each response at each condition separately.
As a result, I will have two association ...
We are working with a dataset that has hundreds of biomarkers (many of which are correlated) and often they have many missing values. Our initial goal was to use an elastic net but that would require ...
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.