Displaying 20 results from an estimated 20 matches for "xerr".
Did you mean:
err
2012 Oct 25
2
How to extract auc, specificity and sensitivity
...e in a loop and it does not work but when I run it
outside the loop I get the values I want.
n <- 1000; # Sample size
fitglm <- function(sigma,tau){
x <- rnorm(n,0,sigma)
intercept <- 0
beta <- 0
ystar <- intercept+beta*x
z <- rbinom(n,1,plogis(ystar))
xerr <- x + rnorm(n,0,tau)
model<-glm(z ~ xerr, family=binomial(logit))
int<-coef(model)[1]
slope<-coef(model)[2]
pred<-predict(model)
result<-ifelse(pred>.5,1,0)
accuracy<-length(which(result==z))/length(z)
accuracy
rocpreds<-prediction(resu...
2008 Oct 01
0
xpred.rpart() in library(mvpart)
R-users
E-mail: r-help@r-project.org
Hi! R-users.
http://finzi.psych.upenn.edu/R/library/mvpart/html/xpred.rpart.html
says:
data(car.test.frame)
fit <- rpart(Mileage ~ Weight, car.test.frame)
xmat <- xpred.rpart(fit)
xerr <- (xmat - car.test.frame$Mileage)^2
apply(xerr, 2, sum) # cross-validated error estimate
# approx same result as rel. error from printcp(fit)
apply(xerr, 2, sum)/var(car.test.frame$Mileage)
printcp(fit)
I carried out the R object:
function ()
{
#
library(mvpart)
xx1 <- c(1,2,3,4,5,6,7...
2018 Jan 20
1
Specification: Bi variate minimization problem
...nt to do is the following:
Suppose that we choose a value P so that.
Any X <= P is understood as belonging to group X while
any Y > P is understood as belonging to group Y.
now any values of X > P or of Y <= P are wrongly understood as belonging to Y nad X effectively.
Hence we have Xerr -- > Sum( X >P) and Yerror --> Sum(Y<=P).
I want to solve this bivariate optimization problem where I want to at the same time minimize the error of X and Y for a given P. Ultimately the target is to optimize the value of P so that the errors of both X and Y are optimized. More specifi...
2012 Oct 20
1
Logistic regression/Cut point? predict ??
...m <- function(sigma,tau){
x <- rnorm(n,0,sigma)
intercept <- 0
beta <- 5
* ystar <- intercept+beta*x*
* z <- rbinom(n,1,plogis(ystar))* *# I believe plogis accepts the a
+bx augments and return the e^x/(1+e^x) which is then used to generate 0
and 1 data*
xerr <- x + rnorm(n,0,tau) # error is added here
model<-glm(z ~ xerr, family=binomial(logit))
int<-coef(model)[1]
slope<-coef(model)[2]
pred<-predict(model) #this gives me the a+bx data for new error? I
know I can add type= response to get the probab. but only e^x not...
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
...uintmax_t) major (dev), (uintmax_t) minor (dev)) < 0) {
perror ("printf");
exit (EXIT_FAILURE);
}
diff --git a/fish/alloc.c b/fish/alloc.c
index b40284a..9f41915 100644
--- a/fish/alloc.c
+++ b/fish/alloc.c
@@ -97,7 +97,7 @@ parse_size (const char *str, off_t *size_rtn)
xerr = xstrtoull (str, NULL, 0, &size, "0kKMGTPEZY");
if (xerr != LONGINT_OK) {
fprintf (stderr,
- _("%s: invalid integer parameter (%s returned %d)\n"),
+ _("%s: invalid integer parameter (%s returned %u)\n"),
"parse_s...
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
...uintmax_t) major (dev), (uintmax_t) minor (dev)) < 0) {
perror ("printf");
exit (EXIT_FAILURE);
}
diff --git a/fish/alloc.c b/fish/alloc.c
index b40284a..9f41915 100644
--- a/fish/alloc.c
+++ b/fish/alloc.c
@@ -97,7 +97,7 @@ parse_size (const char *str, off_t *size_rtn)
xerr = xstrtoull (str, NULL, 0, &size, "0kKMGTPEZY");
if (xerr != LONGINT_OK) {
fprintf (stderr,
- _("%s: invalid integer parameter (%s returned %d)\n"),
+ _("%s: invalid integer parameter (%s returned %u)\n"),
"parse_s...
2010 Oct 17
4
How to edit/modify system32 exe files?
Hello,
I would like to try to edit/modify default values of winebrowser.exe (for example with Reshacker) for it to open url and email addresses with Seamonkey... (Trying to solve this problem => See my post) (http://forum.winehq.org/viewtopic.php?t=9915)
> +-WineBrowser
> | |
> | +->Browsers
> | | [List of browsers that Wine will attempt to launch when running winebrowser
> |
2012 Oct 26
0
Problems getting slope and intercept to change when do multiple reps.
library(ROCR)
n <- 1000
fitglm <- function(iteration,intercept,sigma,tau,beta){
x <- rnorm(n,0,sigma)
ystar <- intercept+beta*x
z <- rbinom(n,1,plogis(ystar))
xerr <- x + rnorm(n,0,tau)
model<-glm(z ~ xerr, family=binomial(logit))
*int*<-coef(model)[1]
*slope*<-coef(model)[2] # when add error you are suppose to get slightly
bias slope. However when I change the beta in the original X, I am not
getting the save average slope as output? strange?...
2011 May 25
0
Fw: questions about rpart - cont.
...false positive using rpart?
Thanks
----- Forwarded Message ----
From: carol white <wht_crl at yahoo.com>
To: r-help at stat.math.ethz.ch
Sent: Wed, May 25, 2011 9:06:15 AM
Subject: questions about rpart
Hi,
I have applied rpart to my data set and for cp=.01, the cross-validation error
(xerr) is less (min 0.05) than for other cp. However, in the final tree, an
important predictor is not retained. Moreover, another predictor contains
missing values in 40% of samples. So I don't know if the important predictor is
not retained as the result of missing values or if I should have sel...
2018 Jan 20
0
Bi variate minimization problem
...nt to do is the following:
Suppose that we choose a value P so that.
Any X <= P is understood as belonging to group X while
any Y > P is understood as belonging to group Y.
now any values of X > P or of Y <= P are wrongly understood as belonging to Y nad X effectively.
Hence we have Xerr -- > Sum( X >P) and Yerror --> Sum(Y<=P).
I want to solve this bivariate optimization problem where I want to at the same time minimize the error of X and Y for a given P. Ultimately the target is to optimize the value of P so that the errors of both X and Y are optimized.
Does any1 h...
2019 Jul 01
0
[PATCH 1/6] p2v: move kernel config to perl script
...\"%s\", p);\n", $key;
+ } elsif ($type eq 'ConfigBool') {
+ printf $fh " %s%s = guestfs_int_is_true (p) || STREQ (p, \"\");\n", $v, $field->name;
+ } elsif ($type eq 'ConfigUInt64') {
+ print $fh " xerr = xstrtoull (p, NULL, 0, &ull, \"0kKMGTPEZY\");\n";
+ print $fh " if (xerr != LONGINT_OK)\n";
+ print $fh " error (EXIT_FAILURE, 0,\n";
+ print $fh " \"cannot parse %s=%s from the kernel command line\&qu...
2019 Jul 01
8
[PATCH 0/6] p2v: start making it independent
As preliminary steps in splitting virt-p2v to an own repository,
start making p2v more independent within libguestfs. This is
accomplished by the following changes:
- generate the p2v kernel config sources & docs at build time using a
Perl script, rather than the generator (so no need for OCaml when
building from git, and no generated sources in dist tarballs)
- create two local test
2014 Jan 27
0
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
...re_input (const char *input, const char *ifmt, char **ifile_rtn,
+ int *ifile_delete_on_exit)
+{
+ abort (); /* XXX */
+}
+
+/* Adapted from fish/alloc.c */
+static int
+parse_size (const char *str, uint64_t estimate, uint64_t *size_rtn)
+{
+ unsigned long long size;
+ strtol_error xerr;
+ int plus = 0;
+
+ assert (str);
+
+ if (str[0] == '+') {
+ plus = 1;
+ str++;
+ }
+
+ xerr = xstrtoull (str, NULL, 0, &size, "0kKMGTPEZY");
+ if (xerr != LONGINT_OK) {
+ fprintf (stderr,
+ _("%s: %s: invalid size parameter '%s' (%s re...
2014 Jan 27
2
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
I thought it would be easy to rewrite virt-make-fs in C.
Two days later ...
The Perl program uses a lot of external commands, which makes
it pretty tedious to implement in C.
Rich.
2016 Sep 08
4
[PATCH 0/3] Use gnulib's getprogname
Hi,
this series update libguestfs to a recent gnulib version, so that we
can use its new getprogname module, and solve altogether one of the
porting issues (the need for 'program_name' by the error module of
gnulib), and have a single way to get the name of the current program.
A number of changes in tools mostly, although mechanical.
Thanks,
Pino Toscano (3):
Update gnulib to latest
2018 Jun 29
3
p2v: Various cleanups.
These are a prelude to fixing
https://bugzilla.redhat.com/show_bug.cgi?id=1590220
A lot of the virt-p2v configuration code was duplicated manually.
These changes make sure that most of it is generated.
Rich.
2010 Feb 05
13
[PATCH 01/14] hivexsh: Document some peculiarities of the "cd" command.
---
hivex/hivexsh.pod | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/hivex/hivexsh.pod b/hivex/hivexsh.pod
index 277e3ae..9336798 100644
--- a/hivex/hivexsh.pod
+++ b/hivex/hivexsh.pod
@@ -100,7 +100,14 @@ or even:
Path elements (node names) are matched case insensitively, and
characters like space, C<*>, and C<?> have I<no> special
2017 Apr 04
1
[PATCH] Use Unicode single quotes ‘’ in place of short single quoted strings throughout.
...parse the output of 'du' command: %s\n"),
+ fprintf (stderr, _("%s: cannot parse the output of ‘du’ command: %s\n"),
getprogname (), line);
return -1;
}
@@ -632,7 +632,7 @@ parse_size (const char *str, uint64_t estimate, uint64_t *size_rtn)
xerr = xstrtoull (str, NULL, 0, &size, "0kKMGTPEZY");
if (xerr != LONGINT_OK) {
fprintf (stderr,
- _("%s: %s: invalid size parameter '%s' (%s returned %u)\n"),
+ _("%s: %s: invalid size parameter ‘%s’ (%s returned %u)\n"),...
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers.
These aren't valid for global names in C++.
(http://stackoverflow.com/a/228797)
These large but completely mechanical patches change the illegal
identifiers to legal ones.
Rich.
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is
time to remove it from libguestfs.
[1] https://github.com/libguestfs/virt-p2v
[2] http://download.libguestfs.org/virt-p2v/
Pino Toscano (2):
Remove virt-p2v
Remove remaining virt-p2v bits
.gitignore | 4 -
Makefile.am | 7 +-
bash/Makefile.am