Displaying 20 results from an estimated 27 matches for "elasticnet".
2006 Apr 23
1
help! A quetion about the Elasticnet package in R
Can anybody help me to run the Elasticnet package of R to build some model,
i am a freshman to R language , when i use the Elasticnet package to my
data, it always reture a error, but i can't settle that problem. I
consider if there is any constrant of the data to that package? Can anyone
help me to run the elasticnet and check my d...
2013 Mar 14
1
Elasticnet - Cross validation problem
Hello,
I am attempting to use elasticnet to classify a number of documents.
The features are words. The data is coded into a matrix with each document as a row and each word as a column. The data is binary, with {0,1} indicating the presence of a word.
I want to use the cross validation function of elasticnet (cv.enet). However, wh...
2009 Jul 12
0
Plotting problem [lars()/elasticnet()]
...except I am having problem in plotting standardized
(adaptive lasso) coefficients vs. |beta|/max(|beta|). It seems that
plot(out.adalasso) provides plot for beta_new. How can i get similar plot
for beta_adalasso.
--
View this message in context: http://www.nabble.com/Plotting-problem--lars%28%29-elasticnet%28%29--tp24446187p24446187.html
Sent from the R help mailing list archive at Nabble.com.
2009 Apr 05
2
loop problem for extract coefficients
...want to
store the coefficient values. I have performed a Elastic Net regression and
I want to store the coeffcients in each iteration. I got an error message .
I do not know where is the problem???? Please help me.
Thanks
*Code:*
-------------------------------------------------------
library(elasticnet)
X<-matrix(rnorm(200),ncol=20)
Y<-matrix(rnorm(200),ncol=20)
loop <- 20
size <- 20
enres<-matrix(nrow = size, ncol = loop)
fit<-matrix(nrow = size, ncol = loop)
store<-matrix(nrow = size, ncol = loop)
for(j in 1: 10)
print (paste(j,"/200",sep=""))
{
enres<...
2009 Aug 04
2
error in Elastic net
Dear R users,
I am new user for elastic net. I am trying to use elasticnet library.
I have marker data with 359 markers and 168 samples, and response is metabolites. I am trying to do regression between a metabolite and markers.
But i am getting the following error:
> en<-enet(marker,as.numeric(vio),lambda=0.5,normalize=FALSE,intercept=TRUE)
Error in one %*% x :...
2009 Mar 17
1
Double Cross validation for LASSO
Dear R user,
I am looking for a code on double cross validation in
LASSO , one for optimizing the parameter and other one is for MSEP. If any
one have it, please foroward to me. I am using different package like LARS,
chemometric etc.
Thanks in advance
Alex
[[alternative HTML version deleted]]
2013 Mar 19
1
Lars package
Hi,
I'm using lars package to run some regression analysis and my doubt now is how can I predict my model to another dataset?
Let me explain a little better:
I have a dataset from which I withhold some data. With the data that wasn't withheld, I create the model. Now, what I'm not being able to do is apply the model back to the data that I withheld.
Any suggestions?
Here it goes
2011 Feb 03
1
glmnet with binary predictors
...scorecard using a dataset which has a variable
depicting actual credit history (good/bad) and 41 other variables of
yes/no type. The procedure I am asked to follow is to use a penalized
logistic procedure for variable selection. I have located the package
"glmnet" which gives the complete elasticnet regularization path for
logistic models. I want some help in setting up the process.
Can someone point out the basic steps?
Thanks
Sambit
2017 Aug 01
1
How automatic Y on install y/n prompts?
...ot;,"monomvn","
> foba","logicFS","rPython","qrnn","randomGLM","msaenet","
> Rborist","relaxo","ordinalNet","rrf","frbs","extraTrees","
> ipred","elasticnet","bst","brnn","Boruta","arm","elmNN","
> evtree","extraTrees","deepnet","kknn","KRLS","RSNNS","partDSA","plsRglm","
> quantregForest","ranger&q...
2017 Aug 01
0
How automatic Y on install y/n prompts?
...nomvn","
>> foba","logicFS","rPython","qrnn","randomGLM","msaenet","
>> Rborist","relaxo","ordinalNet","rrf","frbs","extraTrees","
>> ipred","elasticnet","bst","brnn","Boruta","arm","elmNN","
>>
>evtree","extraTrees","deepnet","kknn","KRLS","RSNNS","partDSA","plsRglm","
>> quantregForest",&q...
2017 Aug 02
0
glmnetUtils 1.1 now available
The version 1.1 update to my glmnetUtils package is now available on CRAN. glmnetUtils provides a formula interface for the 'glmnet' package for elasticnet regression, a method for cross-validating the alpha parameter, and other quality-of-life tools.
>From the NEWS.md file:
- Now allows interaction and expression terms without requiring use.model.frame=TRUE. This works in an additive fashion, ie the formula ~ a + b:c + d*e is treated as consist...
2007 Nov 29
0
New versions of the caret (3.08) and caretLSF (1.12) packages
...packages have been
released.
caret (short for "Classification And REgression Training") aims to
simplify the model building process. The package has functions for data
splitting, pre-processing and model tuning, as well as other
miscellaneous functions.
In the new versions:
- The elasticnet and the lasso (from the enet package) have been
added
- mars and fda models are now fit using the earth package. Instead of
using nk as a tuning parameter, these models now use the default nk from
the training set and tunes over nprune. This mimics the process used by
earth/mars/fda more closel...
2007 Nov 29
0
New versions of the caret (3.08) and caretLSF (1.12) packages
...packages have been
released.
caret (short for "Classification And REgression Training") aims to
simplify the model building process. The package has functions for data
splitting, pre-processing and model tuning, as well as other
miscellaneous functions.
In the new versions:
- The elasticnet and the lasso (from the enet package) have been
added
- mars and fda models are now fit using the earth package. Instead of
using nk as a tuning parameter, these models now use the default nk from
the training set and tunes over nprune. This mimics the process used by
earth/mars/fda more closel...
2009 Apr 02
0
Sparse PCA problem
...umber of non zero loading is 1
pc5 number of non zero loading is 1
pc6 number of non zero loading is 1
*How can I know in which pc,s how many non zero loadings will be? Any
code??? One answer can be cross validation but I did not find in the
package. *
**
*Thanks for your help*
*Code:*
library(elasticnet)
> out2<-spca(pitprops,*K=6*,type="Gram",sparse="varnum",trace=TRUE,*
para=c(7,4,4,1,1,1))
*iterations 10
iterations 20
iterations 30
iterations 40
> out2
Call:
spca(x = pitprops, K = 6, para = c(7, 4, 4, 1, 1, 1), type = "Gram",
sparse = "varnum"...
2010 Jan 27
1
Step and AIC
Hello everybody,
I would need some help from you.
I am trying to fit a logistic model to some presence absence data of
animals living on river islands. I have got 12 predictor variables and I am
trying to use a stepwise forward method to fit the best logistic model to
my data. I am using the function STEP (stats).
I have a question for you. Can I use step function if my variables have a
2008 Aug 21
0
Elastic net loop problem
Dear Members,
I am working on Elastic net and using R package for that. I
have two matrix. My response is a matrix of size 50X50 and predictor is also
in same
size. I want to extract only cloumns from the matrix and do the elastic net
analysis then store them as a matrix.
library(elasticnet)
library(lars)
XB<-matrix(rnorm(2500,0,1), ncol=50,nrow=50)
y1<-matrix(rnorm(2500,0,1), ncol=50,nrow=50)
en1<-enet(x=XB,y=y1[,1],lambda=1,normalize=TRUE,intercept=TRUE) # here I
have used one column 1 as my respose
coefs<-predict(en1,s=0.45,type="coef",mode="fraction&quo...
2011 Jun 06
1
Lasso for k-subset regression
Dear R-users
I'm trying to use lasso in lars package for subset regression, I have a
large matrix of size 1000x100 and my aim is to select a subset k of the 100
variables.
Is there any way in lars to fix the number k (i.e. to select the best 10
variables)
library(lars)
aa=lars(X,Y,type="lasso",max.steps=200)
plot(aa,plottype="Cp")
aa$RSS
which.min(aa$RSS)
2017 Aug 02
0
glmnetUtils 1.1 now available
The version 1.1 update to my glmnetUtils package is now available on CRAN. glmnetUtils provides a formula interface for the 'glmnet' package for elasticnet regression, a method for cross-validating the alpha parameter, and other quality-of-life tools.
>From the NEWS.md file:
- Now allows interaction and expression terms without requiring use.model.frame=TRUE. This works in an additive fashion, ie the formula ~ a + b:c + d*e is treated as consist...
2006 Mar 02
0
glmpath (new version 0.91)
..., a package
which fits the L1 regularization path for generalized linear models.
The revision includes:
- coxpath, a function for fitting the L1-regularization path for the Cox
ph model;
- bootstrap functions for analyzing sparse solutions;
- the ability to mix in L2 regularization along with L1 (elasticnet).
We have also completed a report that describes these methods in detail:
http://www-stat.stanford.edu/~hastie/Papers/glmpath.pdf
The lars package in R fits the entire piecewise-linear L1 regularization
path for
the lasso. The coefficient paths for L1 regularized glms, however,
are not piecewi...
2006 Mar 02
0
glmpath (new version 0.91)
..., a package
which fits the L1 regularization path for generalized linear models.
The revision includes:
- coxpath, a function for fitting the L1-regularization path for the Cox
ph model;
- bootstrap functions for analyzing sparse solutions;
- the ability to mix in L2 regularization along with L1 (elasticnet).
We have also completed a report that describes these methods in detail:
http://www-stat.stanford.edu/~hastie/Papers/glmpath.pdf
The lars package in R fits the entire piecewise-linear L1 regularization
path for
the lasso. The coefficient paths for L1 regularized glms, however,
are not piecewi...