Displaying 20 results from an estimated 3000 matches similar to: "GLM with regularization"
2012 Mar 16
1
rJava call performance
Hello,
I am getting pretty poor rJava call performance
> system.time(for (i in 1:1000) J("java.lang.Double")$parseDouble(as.character(i)))
user system elapsed
4.884 0.000 4.900
i.e. 5 milliseconds per very simple call on a very fast cpu. JNI calls
themselves are said to be pretty fast nowadays (10...40ns). It
probably goes accross reflection but still doing pretty much
2012 Apr 18
1
ggplot2 stat_density2d issue.
Hello,
I'd be very grateful for help with some ggplot2's stat_density2d issues.
First issue is with data limits. xlim() and ylim() doesn't seem to
work; instead, estimates (and plotting) seems to be constrained to
range(x), range(y) no matter what i do. The documentation says i can
pass in kde2d's parameters to ... but pussing kde2d's "lims" parameter
achieves
2010 Jan 01
1
Questions bout SVM
Hi everyone,
Can someone please help me in these questions?:
1)if I use crossvalidation with svm, do I have to use this equation to calculate RMSE?:
mymodel <- svm(myformula,data=mydata,cross=10)
sqrt(mean(mymodel$MSE))
But if I don’t use crossvalidation, I have to use the following to calculate RMSE:
mymodel <- svm(myformula,data=mydata)
mytest
2009 Aug 21
1
LASSO: glmpath and cv.glmpath
Hi,
perhaps you can help me to find out, how to find the best Lambda in a
LASSO-model.
I have a feature selection problem with 150 proteins potentially
predicting Cancer or Noncancer. With a lasso model
fit.glm <- glmpath(x=as.matrix(X), y=target, family="binomial")
(target is 0, 1 <- Cancer non cancer, X the proteins, numerical in
expression), I get following path (PICTURE
2023 Oct 22
1
running crossvalidation many times MSE for Lasso regression
Dear R-experts,
Here below my R code with an error message. Can somebody help me to fix this error??
Really appreciate your help.
Best,
############################################################
#?MSE CROSSVALIDATION Lasso regression?
library(glmnet)
?
2023 Oct 22
2
running crossvalidation many times MSE for Lasso regression
No error message shown Please include the error message so that it is
not necessary to rerun your code. This might enable someone to see the
problem without running the code (e.g. downloading packages, etc.)
-- Bert
On Sun, Oct 22, 2023 at 1:36?PM varin sacha via R-help
<r-help at r-project.org> wrote:
>
> Dear R-experts,
>
> Here below my R code with an error message. Can
2006 Feb 16
1
reg cross validation in svm
Hi
My name is karthikeyan.
I am using svm in R for my data set.
my data set contain 60 finance ratio as variables and i want to classify
into group of good and bad.
I want to know how to do the crossvalidation for the svm .
first i am doing modelling and i am predict and i am calculating the
probabilities
how can i do the cross validation and how can i plot the svm for this
variables
2009 Jul 09
1
validate() in Design library
Hi, another question about validate() in Design library. The arugment "B" of this function is number of repetition for method="bootstrap", which is easy to understand; but for method="crossvalidation", B is the number of groups of omitted observations. This is confusing, I don't understand what it means. Let's say 5-fold cross validation, all samples are
2009 Oct 28
1
Data Partition Package
Hi, Users,
I am a new user. I am trying to partition data into training and test. Is
there any R package or function that can partition dataset? Also, is there
any package do crossvalidation? Any help will be appreciated.
Best,
Pat
[[alternative HTML version deleted]]
2008 Jun 25
1
LDA on pre-assigned training and testing data sets
Dear r-help
I am trying to run LDA on a training data set, and test it on another data set with the same variables. I found examples using crossvalidation, and using training and testing data sets set up with sample, but not when they are preassigned.
Here is what I tried
# FIRST SET UP A DATAFRAME WITH ALL THE DATA AND CREATE NEW VARIABLES
traintest1 <-
2006 Apr 19
2
W2K Domain Users in Samba
Looking for a poniter in the right direction
My current configuration is
NT4 PDC (Solaris PCnetlink)
Samba Member server (Solaris 9 Samba ver 3.0.20b)for file and print
sharing
WinXp Pro Clients SP2
My problem is with the Domain Users. I am able to share out file systems
to the XP clients from my Samba server OK. I am also able to modify the
permissions for the files in the share in Solaris
2006 Jan 01
3
Single Table inheitance doesn''t show subclasses ?
Hi, I am a Rails noob.
Suppose you have:
---
class Animal < ActiveRecord::Base
end
class Mammal < Animal
end
class Cow < Mammal
end
---
I provide Animal,Mammal and Cow controllers with the scaffolding, just
to test and to fill up the Animal table. I can see the "type" column
getting it''s value set with the class name.
So far, soo good.
Now, since listing Animals
2006 Feb 16
1
cv.glm function error message in a loop
Dear list,
I am modelling fish distributions using the glm-function followed by the
step-function, and then want to cross-validate the model via the
cv.glm-function from the {boot} package. I am working on fish
distributions on coral reefs. The code I have works for one fish
species. Since I have 227 fishes, I wrote a loop. Now the
cv.glm-function comes up with an error message: "Error in
2023 Oct 23
2
running crossvalidation many times MSE for Lasso regression
For what it's worth it looks like spm2 is specifically for *spatial*
predictive modeling; presumably its version of CV is doing something
spatially aware.
I agree that glmnet is old and reliable. One might want to use a
tidymodels wrapper to create pipelines where you can more easily switch
among predictive algorithms (see the `parsnip` package), but otherwise
sticking to glmnet
2010 Dec 27
3
Gamma & Lognormal Model
Dear,
I'm very new to R Gui and I have to make an assignment on Gamma Regressions.
Surfing on the web doesn't help me very much so i hope this forum may be a
step forward.
The question sounds as follows:
The data set is in the library MASS
first install library(MASS)
then type data(mammals)
attach(mammals)
Assignment:
Fit the gamma model and lognormal model for the mammals data.
2017 Aug 11
3
Help to create bugzilla account
Hi mailing list and R-core. Could someone from R-core please help me to
create account in bugzilla? I would like to submit issue related to gc() to
wishlist.
Related context is here -
https://stat.ethz.ch/pipermail/r-devel/2017-July/074715.html
--
Regards
Dmitriy Selivanov
[[alternative HTML version deleted]]
2018 Nov 21
3
Subsetting row in single column matrix drops names in resulting vector
Hi Rui. Thanks for answer, I'm aware of drop = FALSE option. Unfortunately
it doesn't resolve the issue - I'm expecting to get a vector, not a matrix .
??, 21 ????. 2018 ?. ? 20:54, Rui Barradas <ruipbarradas at sapo.pt>:
> Hello,
>
> Use drop = FALSE.
>
> a[1, , drop = FALSE]
> # col1
> #row1 1
>
>
> Hope this helps,
>
> Rui Barradas
2001 Feb 01
3
summary() vs mean()
Forgive what may seem to be a trivial question/problem.
Below is some simple R 1.2.1(Windows) code with output.
> summary(mammals, digits=10)
Name Body.Weight Brain.Weight
Red Fox :1 Min. : 3.0 Min. : 26.0
Pig :1 1st Qu.: 35.5 1st Qu.: 138.5
Man :1 Median : 100.0 Median : 406.0
Kangaroo:1 Mean : 761.2 Mean :1000.0
Jaguar :1 3rd
2013 Feb 23
2
[LLVMdev] Assertion failed after my storeRegToStackSlot/loadFromStackSlot
Hi All.
I'm writing storeRegToStackSlot and loadFromStackSlot function for my
Target. This Target can store/load one byte (not all word) from
FrameIndex. If I need to store 16 bit register I will must to split it
to two instruction like this:
BuildMI(MBB, MI, dl, get(Z80::LD8xmr))
.addFrameIndex(FrameIndex).addImm(0)
.addReg(SrcReg, 0, Z80::subreg_lo);
BuildMI(MBB, MI, dl,
2005 May 11
2
Subset with selection variable from function argument. Is there another way?
Dear list,
I'm making my current code more generic and would like some advise.
The basic problem is subset and the name of the column to be compared
for selection.
What I've come up with is
> data(mammals)
> set <- bottompremolars"
> subset(mammals, eval(parse(file="",text=set)) > 2)
This seems a bit odd. Is there a nicer way?
/Fredrik