Displaying 4 results from an estimated 4 matches for "insampl".
Did you mean:
nsampl
2004 Apr 13
0
In-sample / Out-of-sample using R
...ate some data for a linear regression (100 points)
x = runif(100); y = 2 + 3*x + rnorm(100)
D = data.frame(x, y)
# Choose a random subset of 25 points which will be "in sample"
d = sort(sample(100, 25)) # Sorting just makes d more readable
cat("Subset of insample points --\n"); print(d)
# Estimate a linear regression using all points
m1 = lm(y ~ x, D)
# Estimate a linear regression using only the subset
m2 = lm(y ~ x, D, subset=d)
# Get to predictions --
yhat1 = predict.lm(m1, D); yhat2 = predict.lm(m2, D)
# And standard deviat...
2007 Apr 13
0
How consistent is predict() syntax?
...NA NA NA -0.21 -2.28 -2.71 ...
$ y.l8 : num NA NA NA NA NA NA NA NA -0.21 -2.28 ...
$ y.l9 : num NA NA NA NA NA NA NA NA NA -0.21 ...
$ y.l10: num NA NA NA NA NA NA NA NA NA NA ...
$ y.l11: num NA NA NA NA NA NA NA NA NA NA ...
$ y.l12: num NA NA NA NA NA NA NA NA NA NA ...
I have:
> insample <- 1:179
> outsample <- 180:191
To help you see what is going on:
> D[outsample,]
y y.l1 y.l2 y.l3 y.l4 y.l5 y.l6 y.l7 y.l8 y.l9 y.l10 y.l11 y.l12
180 NA 8.81 8.53 5.68 5.97 9.75 7.20 7.63 4.73 12.24 10.76 8.13 9.82
181 NA NA 8.81 8.53 5.68 5.97 9.75 7.20 7.63 4.73 12.24 1...
2005 Oct 08
1
Rpart -- using predict() when missing data is present?
I am doing
> library(rpart)
> m <- rpart("y ~ x", D[insample,])
> D[outsample,]
y x
8 0.78391922 0.579025591
9 0.06629211 NA
10 NA 0.001593063
> p <- predict(m, newdata=D[9,])
Error in model.frame(formula, rownames, variables, varnames, extras, extranames, :
invalid result from na.action
How do I persu...
2013 Feb 18
1
Directory metadata inconsistencies and missing output ("mismatched layout" and "no dentry for inode" error)
...s-fuse: 2298079: GETATTR 140360215569520 (fuse_loc_fill() failed)
...
Sometimes on these events, and sometimes not, there will also be logs (on
both normal and abnormal nodes) of the form:
[2013-02-18 03:35:28.679681] I [dht-common.c:525:dht_revalidate_cbk]
0-volume1-dht: mismatching layouts for /inSample/pred/20110831
I understand from reading the mailing list that both the dentry errors and
the mismatched layout errors are both non-fatal warnings and that the
metadata will become internally consistent regardless. But these errors
only happen on times when I'm slamming the glusterfs system wi...