search for: err1

Displaying 20 results from an estimated 97 matches for "err1".

Did you mean: err
2012 Oct 19
2
Axis Breaks with ggplot2
...d", "Uncensured"), class = "factor")), .Names = c("condition", "trial.avg", "trial.sd", "s.e.", "N", "condition2"), row.names = c(NA, -3L), class = "data.frame") library(ggplot2) none <- theme_blank() err1$condition <- as.factor(err1$condition) censorA <- ggplot() + geom_bar(aes(y = trial.avg, x = as.factor(condition2), fill = as.factor(condition2), position = "dodge"), data = err1) censorB <- censorA + geom_errorbar(aes(x = err1$condition2, ymin = (err1$trial.avg-(err1$trial.sd/s...
2015 Jan 27
3
trabajar con todos los elementos de la fila de un data.table
...ontiene un DATO y los resultados de la aplicación de una validación (ERR01, ERR2, ERR3) y la concatenación de estos errores en una sola columna. Si tiene error, graba el número del error, si no lo tiene, graba NA. Utilizando la función paste directamente en el DT se ontiene la variable LISTA: DATO ERR1 ERR2 ERR3 LISTAAAA 1 2 3 1|2|3BBB NA 2 3 NA|2|3CCC NA NA 3 NA|NA|3DDD NA NA NA NA|NA|NA Pero lo que se requiere es que el NA no se muestre, es decir lista debería tener elementos como: 1|2|3, 2|3, 3, y vacío,...
2020 Feb 19
2
Poor write performance with golang binding
...range devices { fmt.Println(dev) } case OpCat: for { buf, err := g.Pread_device(devname, bs, offset) if err != nil { log.Fatal(err) } if len(buf) == 0 { break } n, err1 := os.Stdout.Write(buf) if err1 != nil { log.Fatal(err1) } if n != len(buf) { log.Fatal("stdout: short write") } offset += int64(len(buf)) } case OpWrite: buf := make([]byte, bs...
2020 Feb 19
0
Re: Poor write performance with golang binding
...} > case OpCat: > for { > buf, err := g.Pread_device(devname, bs, offset) > if err != nil { > log.Fatal(err) > } > if len(buf) == 0 { > break > } > n, err1 := os.Stdout.Write(buf) > if err1 != nil { > log.Fatal(err1) > } > if n != len(buf) { > log.Fatal("stdout: short write") > } > offset += int64(len(buf)) > } >...
2020 Feb 12
0
[nbdkit PATCH 3/3] ext2: Add mode for letting client exportname choose file from image
...- &file[1], &h->ino); + &fname[1], &h->ino); if (err != 0) { - nbdkit_error ("%s: namei: %s", file, error_message (err)); + nbdkit_error ("%s: namei: %s", fname, error_message (err)); goto err1; } } - /* Check the file is a regular file. + /* Check that fname is a regular file. * XXX This won't follow symlinks, we'd have to do that manually. */ err = ext2fs_read_inode (h->fs, h->ino, &inode); if (err != 0) { - nbdkit_error ("%s: inode: %s...
2007 Jan 22
2
[LLVMdev] addPassesToEmit(Whole)File changes?
...t will work, but of course I will need to get it to work with the newest llvm version at some point. Any pointers? Thanks! Marcel This is my current code: -(void)dumpAssemblerToFile:(NSString*)filename { TargetMachine::CodeGenFileType FileType = TargetMachine::AssemblyFile; std::string err1; Module *M=(Module*)module; const TargetMachineRegistry::Entry* entry= TargetMachineRegistry::getClosestStaticTargetForModule( *M, err1 ); TargetMachine &target=*entry->CtorFn( *M, "" ); [self generateMethodLists]; std::ostream *outStream = 0; PassManager passes; outStrea...
2003 Aug 20
2
RandomForest
Hello, When I plot or look at the error rate vector for a random forest (rf$err.rate) it looks like a descending function except for a few first points of the vector with error rates values lower(sometimes much lower) than the general level of error rates for a forest with such number of trees when the error rates stop descending. Does it mean that there is a tree(s) (that is built the first in
2019 Jun 11
2
[PATCH v12 2/7] virtio-pmem: Add virtio pmem driver
...it get one, or should it be made static? > +{ > + struct virtio_device *vdev = nd_region->provider_data; > + struct virtio_pmem *vpmem = vdev->priv; > + struct virtio_pmem_request *req_data; > + struct scatterlist *sgs[2], sg, ret; > + unsigned long flags; > + int err, err1; > + > + might_sleep(); > + req_data = kmalloc(sizeof(*req_data), GFP_KERNEL); > + if (!req_data) > + return -ENOMEM; > + > + req_data->done = false; > + init_waitqueue_head(&req_data->host_acked); > + init_waitqueue_head(&req_data->wq_buf); > + INIT_...
2019 Jun 11
2
[PATCH v12 2/7] virtio-pmem: Add virtio pmem driver
...it get one, or should it be made static? > +{ > + struct virtio_device *vdev = nd_region->provider_data; > + struct virtio_pmem *vpmem = vdev->priv; > + struct virtio_pmem_request *req_data; > + struct scatterlist *sgs[2], sg, ret; > + unsigned long flags; > + int err, err1; > + > + might_sleep(); > + req_data = kmalloc(sizeof(*req_data), GFP_KERNEL); > + if (!req_data) > + return -ENOMEM; > + > + req_data->done = false; > + init_waitqueue_head(&req_data->host_acked); > + init_waitqueue_head(&req_data->wq_buf); > + INIT_...
2019 May 17
2
[PATCH v9 2/7] virtio-pmem: Add virtio pmem driver
...m->req_list); > + spin_unlock_irqrestore(&vpmem->pmem_lock, flags); > + > + /* A host response results in "host_ack" getting called */ > + wait_event(req->wq_buf, req->wq_buf_avail); > + spin_lock_irqsave(&vpmem->pmem_lock, flags); > + } > + err1 = virtqueue_kick(vpmem->req_vq); > + spin_unlock_irqrestore(&vpmem->pmem_lock, flags); > + > + /* > + * virtqueue_add_sgs failed with error different than -ENOSPC, we can't > + * do anything about that. > + */ > + if (err || !err1) { > + dev_info(&vdev-...
2019 May 17
2
[PATCH v9 2/7] virtio-pmem: Add virtio pmem driver
...m->req_list); > + spin_unlock_irqrestore(&vpmem->pmem_lock, flags); > + > + /* A host response results in "host_ack" getting called */ > + wait_event(req->wq_buf, req->wq_buf_avail); > + spin_lock_irqsave(&vpmem->pmem_lock, flags); > + } > + err1 = virtqueue_kick(vpmem->req_vq); > + spin_unlock_irqrestore(&vpmem->pmem_lock, flags); > + > + /* > + * virtqueue_add_sgs failed with error different than -ENOSPC, we can't > + * do anything about that. > + */ > + if (err || !err1) { > + dev_info(&vdev-...
2020 Feb 12
4
[nbdkit PATCH 0/3] Make ext2 a filter
...s_namei (h->fs, EXT2_ROOT_INO, EXT2_ROOT_INO, &file[1], &h->ino); if (err != 0) { - nbdkit_error ("%s: %s: namei: %s", disk, file, error_message (err)); + nbdkit_error ("%s: namei: %s", file, error_message (err)); goto err1; } } @@ -168,12 +191,11 @@ ext2_open (int readonly) */ err = ext2fs_read_inode (h->fs, h->ino, &inode); if (err != 0) { - nbdkit_error ("%s: %s: inode: %s", disk, file, error_message (err)); + nbdkit_error ("%s: inode: %s", file, error_message (...
2019 May 17
0
[Qemu-devel] [PATCH v9 2/7] virtio-pmem: Add virtio pmem driver
...unlock_irqrestore(&vpmem->pmem_lock, flags); > > + > > + /* A host response results in "host_ack" getting called */ > > + wait_event(req->wq_buf, req->wq_buf_avail); > > + spin_lock_irqsave(&vpmem->pmem_lock, flags); > > + } > > + err1 = virtqueue_kick(vpmem->req_vq); > > + spin_unlock_irqrestore(&vpmem->pmem_lock, flags); > > + > > + /* > > + * virtqueue_add_sgs failed with error different than -ENOSPC, we can't > > + * do anything about that. > > + */ > > + if (err || !...
2014 Sep 20
1
[PATCH 2/4]
...xed_compute_residual() has the following code: #if 1 /* OPT: may be faster with some compilers on some systems */ residual[i] = data[i] - (data[i-1] << 1) + data[i-2]; #else residual[i] = data[i] - 2*data[i-1] + data[i-2]; #endif So I thought that adding a different algorithm to calculate err1 variable won't hurt. ...I just noticed that I forgot to write something explanatory after "[PATCH 2/4]" in the subject of the original message.
2007 Jan 22
0
[LLVMdev] addPassesToEmit(Whole)File changes?
...t will work, but of course I will need to get it to work with the newest llvm version at some point. Any pointers? Thanks! Marcel This is my current code: -(void)dumpAssemblerToFile:(NSString*)filename { TargetMachine::CodeGenFileType FileType = TargetMachine::AssemblyFile; std::string err1; Module *M=(Module*)module; const TargetMachineRegistry::Entry* entry= TargetMachineRegistry::getClosestStaticTargetForModule( *M, err1 ); TargetMachine &target=*entry->CtorFn( *M, "" ); [self generateMethodLists]; std::ostream *outStream = 0; PassManager passes; outStrea...
2019 May 12
1
[PATCH v8 2/6] virtio-pmem: Add virtio pmem driver
...gt; + list_del(&req_buf->list); > + } > + } > + spin_unlock_irqrestore(&vpmem->pmem_lock, flags); > +} > +EXPORT_SYMBOL_GPL(host_ack); > + > + /* The request submission function */ > +int virtio_pmem_flush(struct nd_region *nd_region) > +{ > + int err, err1; > + unsigned long flags; > + struct scatterlist *sgs[2], sg, ret; > + struct virtio_device *vdev = nd_region->provider_data; > + struct virtio_pmem *vpmem = vdev->priv; > + struct virtio_pmem_request *req; > + > + might_sleep(); > + req = kmalloc(sizeof(*req), GFP_KER...
2005 Aug 04
7
[PATCH] Convert shutdown to use xenstore
The attached patch: 1. Converts the shutdown driver and xend to use the store instead of control messages, 2. Includes Anthony''s xenstore notification code, and 3. Changes xend so that sysrq''s are no longer sent as "special case" shutdown messages. Store keys are cheap, so making the sysrq delivery less obscure is good. I think I have made all of the
2010 Feb 10
2
Total least squares linear regression
Dear all, After a thorough research, I still find myself unable to find a function that does linear regression of 2 vectors of data using the "total least squares", also called "orthogonal regression" (see : http://en.wikipedia.org/wiki/Total_least_squares) instead of the "ordinary least squares" method. Indeed, the "lm" function has a
2019 May 14
2
[PATCH v8 2/6] virtio-pmem: Add virtio pmem driver
...gt; + list_del(&req_buf->list); > + } > + } > + spin_unlock_irqrestore(&vpmem->pmem_lock, flags); > +} > +EXPORT_SYMBOL_GPL(host_ack); > + > + /* The request submission function */ > +int virtio_pmem_flush(struct nd_region *nd_region) > +{ > + int err, err1; > + unsigned long flags; > + struct scatterlist *sgs[2], sg, ret; > + struct virtio_device *vdev = nd_region->provider_data; > + struct virtio_pmem *vpmem = vdev->priv; > + struct virtio_pmem_request *req; Nit: use reverse Christmas tree layout :) > + > + might_sleep()...
2019 May 14
2
[PATCH v8 2/6] virtio-pmem: Add virtio pmem driver
...gt; + list_del(&req_buf->list); > + } > + } > + spin_unlock_irqrestore(&vpmem->pmem_lock, flags); > +} > +EXPORT_SYMBOL_GPL(host_ack); > + > + /* The request submission function */ > +int virtio_pmem_flush(struct nd_region *nd_region) > +{ > + int err, err1; > + unsigned long flags; > + struct scatterlist *sgs[2], sg, ret; > + struct virtio_device *vdev = nd_region->provider_data; > + struct virtio_pmem *vpmem = vdev->priv; > + struct virtio_pmem_request *req; Nit: use reverse Christmas tree layout :) > + > + might_sleep()...