Displaying 4 results from an estimated 4 matches for "lpsa".
Did you mean:
hpsa
2012 Mar 27
2
lasso constraint
...e
prostate cancer example we could impose L1 constraint on the parameters.
code is:
data(Prostate)
p.mean <- apply(Prostate, 5,mean)
pros <- sweep(Prostate, 5, p.mean, "-")
p.std <- apply(pros, 5, var)
pros <- sweep(pros, 5, sqrt(p.std),"/")
pros[, "lpsa"] <- Prostate[, "lpsa"]
l1ce(lpsa ~ . , pros, bound = 0.44)
I can't figure out what dose 0.44 come from. On the paper it said it was
from generalized cross-validation and it is the optimal choice.
paper name: Regression Shrinkage and Selection via the Lasso
author: Ro...
2005 Feb 11
1
Help concerning Lasso::l1ce
Hi,
First, when I try the example Prostate with bound 0.44
(as in the manual), I got a different result:
> l1c.P <- l1ce(lpsa ~ ., Prostate, bound=0.44)
> l1c.P
....
Coefficients:
(Intercept) lcavol lweight age
lbph svi
1.0435803 0.4740831 0.1953156 0.0000000
0.0000000 0.3758199
lcp gleason pgg45
0.0000000 0.0000000 0.0000000
The relative L1 bound was...
2012 Mar 21
2
glmnet: obtain predictions using predict and also by extracting coefficients
...?
I understand that I may not have the mean/intercept correct, but the
scaling is also off, which suggests a bigger mistake.
Thanks for your help.
Juliet Hannah
library(ElemStatLearn)
library(glmnet)
data(prostate)
# training data
data.train <- prostate[prostate$train,]
y <- data.train$lpsa
# isolate predictors
data.train <- as.matrix(data.train[,-c(9,10)])
# test data
data.test <- prostate[!prostate$train,]
data.test <- as.matrix(data.test[,-c(9,10)])
# scale test data by using means and sd from training data
trainMeans <- apply(data.train,2,mean)
trainSDs <- app...
2001 Aug 08
1
AUTH_FAIL_MAX reached too early
...imes.
Btw: The exit status bug is fixed in the CVS version of OpenSSH, but
I'm not very enthusiastic about deploying a random CVS version of
OpenSSH on a network with about 1000 unix machines and exactly
32767(!) users. Any time estimate for a bugfix release?
Report from user:
[larsar at lpsa larsar]$ ssh -v root at foobar
OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090601f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Seeding random number generator
debug1: restore_uid
debug1: ssh_connect: getuid 2024 geteuid 0 anon 0
debug1:...