Displaying 20 results from an estimated 160 matches for "nsplit".
Did you mean:
split
2017 Jan 30
0
[PATCH v6 2/3] mllib: modify nsplit to take optional noempty and count arguments
Added two new optional arguments to nsplit:
* keep_empty: if set to false empty elements are not stored in the
returned list. The default is to keep the empty elements
* count: specifies how many splits to perform; negative count
(the default) means do as many splits as possible
Added tests for nsplit.
Signed-off-by: Tomáš Golembiov...
2016 Dec 18
0
[PATCH v4 4/6] mllib: modify nsplit to take optional noempty and count arguments
Added two new optional arguments to nsplit:
* noempty: if set to false empty elements are not stored in the returned
list. The default is to keep the empty elements
* count: specifies how many splits to perform; negative count
(the default) means do as many splits as possible
Added tests for nsplit.
Signed-off-by: Tomáš Golembiovský...
2017 Jan 31
3
Re: [PATCH v6 2/3] mllib: modify nsplit to take optional noempty and count arguments
On Mon, Jan 30, 2017 at 10:43:15PM +0100, Tomáš Golembiovský wrote:
> Added two new optional arguments to nsplit:
>
> * keep_empty: if set to false empty elements are not stored in the
> returned list. The default is to keep the empty elements
The ?keep_empty flag is pointless. It's simpler and more
clear to write:
List.filter ((<>) "") (nsplit ...)
when you don't wan...
2016 Dec 22
2
Re: [PATCH v4 4/6] mllib: modify nsplit to take optional noempty and count arguments
On Sunday, 18 December 2016 23:16:31 CET Tomáš Golembiovský wrote:
> Added two new optional arguments to nsplit:
>
> * noempty: if set to false empty elements are not stored in the returned
> list. The default is to keep the empty elements
>
> * count: specifies how many splits to perform; negative count
> (the default) means do as many splits as possible
>
> Added tests for ns...
2017 Jan 31
0
Re: [PATCH v6 2/3] mllib: modify nsplit to take optional noempty and count arguments
On Tue, 31 Jan 2017 11:35:01 +0000
"Richard W.M. Jones" <rjones@redhat.com> wrote:
> On Mon, Jan 30, 2017 at 10:43:15PM +0100, Tomáš Golembiovský wrote:
> > Added two new optional arguments to nsplit:
> >
> > * keep_empty: if set to false empty elements are not stored in the
> > returned list. The default is to keep the empty elements
>
> The ?keep_empty flag is pointless. It's simpler and more
> clear to write:
>
> List.filter ((<>) "&q...
2017 Jan 31
1
Re: [PATCH v6 2/3] mllib: modify nsplit to take optional noempty and count arguments
...31, 2017 at 01:17:12PM +0100, Tomáš Golembiovský wrote:
> On Tue, 31 Jan 2017 11:35:01 +0000
> "Richard W.M. Jones" <rjones@redhat.com> wrote:
>
> > On Mon, Jan 30, 2017 at 10:43:15PM +0100, Tomáš Golembiovský wrote:
> > > Added two new optional arguments to nsplit:
> > >
> > > * keep_empty: if set to false empty elements are not stored in the
> > > returned list. The default is to keep the empty elements
> >
> > The ?keep_empty flag is pointless. It's simpler and more
> > clear to write:
> >
>...
2016 Dec 07
0
[PATCH v3 4/6] mllib: modify nsplit to take optional noempty and count arguments
Added two new optional arguments to nsplit:
* noempty: if set to false empty elements are not stored in the returned
list. The default is to keep the empty elements
* count: specifies how many splits to perform; negative count
(the default) means do as many splits as possible
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com&...
2010 Oct 12
2
repeating an analysis
...it n=50 times and from
each output pick the appropriate tree size and post it to a datafile where I
can then look at the frequency distribution of tree sizes.
Here is the code and output from a single run
> fit1 <- rpart(CHAB~.,data=chabun, method="anova",
control=rpart.control(minsplit=10, cp=0.01, xval=10))
> printcp(fit1)
Regression tree:
rpart(formula = CHAB ~ ., data = chabun, method = "anova", control =
rpart.control(minsplit = 10,
cp = 0.01, xval = 10))
Variables actually used in tree construction:
[1] EXP LAT POC RUG
Root node error: 35904/33 = 1088
n= 33...
2004 Jun 17
2
using "= matrix (...)" in .C calls
Dear R-devel,
I am trying to alter rpart so that it makes additional calculations when
growing the tree.
In the "rpart.s" there is a call to the C routine:
rp <- .C("s_to_rp2",
as.integer(nobs),
as.integer(nsplit),
as.integer(nodes),
as.integer(ncat),
as.integer(cats *!isord),
as.integer(max(cats)),
as.integer(xval),
which = integer(nobs),
cptable =...
2016 Dec 09
2
Re: [PATCH v3 4/6] mllib: modify nsplit to take optional noempty and count arguments
On Wednesday, 7 December 2016 17:13:08 CET Tomáš Golembiovský wrote:
> Added two new optional arguments to nsplit:
>
> * noempty: if set to false empty elements are not stored in the returned
> list. The default is to keep the empty elements
>
> * count: specifies how many splits to perform; negative count
> (the default) means do as many splits as possible
>
> Signed-off-by: Tom...
2017 Jan 11
3
[PATCH v5 0/3] Import directly from OVA tar archive if possible
...using JSON module to generate JSON (as suggested by Pino)
- all the other comments raised by Pino
v4:
- rebase to more recent master
- 1/6: using just "quote" instead of "Filename.quote"
- 2/6: reformated block of code according to Richards suggestion
- 4/6: added tests for nsplit
v3: Addressed Pino's comments, namely:
- input_ova.ml
- untar takes list of paths
- renamed untar_partial to untar_metadata
- replaced uggly regex with nsplit
- tests
- test changes are part of the main commit
- renamed test-data/guestfs-hashsums.sh to test-data/test-utils.sh
- re...
2016 Dec 09
0
Re: [PATCH v3 4/6] mllib: modify nsplit to take optional noempty and count arguments
On Fri, Dec 09, 2016 at 10:52:23AM +0100, Pino Toscano wrote:
> On Wednesday, 7 December 2016 17:13:08 CET Tomáš Golembiovský wrote:
> > Added two new optional arguments to nsplit:
> >
> > * noempty: if set to false empty elements are not stored in the returned
> > list. The default is to keep the empty elements
> >
> > * count: specifies how many splits to perform; negative count
> > (the default) means do as many splits as possible...
2017 Sep 22
27
[PATCH v3 00/22] Replace almost all uses of the Str module with PCRE.
...ep reason why we had this?
>
> let unix2dos s =
> String.concat "\r\n" (Str.split_delim (Str.regexp_string "\n") s)
>
> I replaced it with what I think should be (nearly) equivalent:
>
> let unix2dos s =
> String.concat "\r\n" (String.nsplit "\n" s)
Rich.
2016 Dec 18
9
[PATCH v4 0/6] Import directly from OVA tar archive if possible
v4:
- rebase to more recent master
- 1/6: using just "quote" instead of "Filename.quote"
- 2/6: reformated block of code according to Richards suggestion
- 4/6: added tests for nsplit
v3: Addressed Pino's comments, namely:
- input_ova.ml
- untar takes list of paths
- renamed untar_partial to untar_metadata
- replaced uggly regex with nsplit
- tests
- test changes are part of the main commit
- renamed test-data/guestfs-hashsums.sh to test-data/test-utils.sh
- re...
2002 Apr 25
1
understanding and resolving seg faults
...Sint *numcat, double **dsplit,
Sint **isplit, Sint **csplit, double **dnode,
Sint **inode, double **deltaI, int id)
rpmatrix is called by "s_to_rp.c" where
ddeltaI is a pointer from an ALLOC call:
void s_to_rp2(Sint *n, Sint *nsplit, Sint *nnode, Sint *ncat,
Sint *numcat, Sint *maxcat, Sint *xvals, Sint *which,
double *cptable, double *dsplit, Sint *isplit, Sint *csplit,
double *dnode, double *deltaI, Sint *inode)
double **ddeltaI; /* declaration of ddelt...
2015 Oct 06
0
[PATCH 5/5] mllib: Replace various ad hoc string_* functions with String.*
...tring_*
functions that appeared in Common_utils have been renamed and placed
in the String.* namespace. The old vs "new" functions are:
string_prefix -> String.is_prefix
string_suffix -> String.is_suffix
string_find -> String.find
replace_str -> String.replace
string_nsplit -> String.nsplit
string_split -> String.split
string_lines_split -> String.lines_split
string_random8 -> String.random8
---
builder/checksums.ml | 2 +-
builder/downloader.ml | 2 +-
builder/index_parser.ml | 4 +-
bui...
2017 Jan 30
6
[PATCH v6 0/3] Import directly from OVA tar archive if possible
...using JSON module to generate JSON (as suggested by Pino)
- all the other comments raised by Pino
v4:
- rebase to more recent master
- 1/6: using just "quote" instead of "Filename.quote"
- 2/6: reformated block of code according to Richards suggestion
- 4/6: added tests for nsplit
v3: Addressed Pino's comments, namely:
- input_ova.ml
- untar takes list of paths
- renamed untar_partial to untar_metadata
- replaced uggly regex with nsplit
- tests
- test changes are part of the main commit
- renamed test-data/guestfs-hashsums.sh to test-data/test-utils.sh
- re...
2016 Aug 23
1
[PATCH] mllib: do not assume $PATH is set
...iff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
index fdca713..9210cf8 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -319,7 +319,9 @@ let protect ~f ~finally =
match r with Either ret -> ret | Or exn -> raise exn
let which executable =
- let paths = String.nsplit ":" (Sys.getenv "PATH") in
+ let paths =
+ try String.nsplit ":" (Sys.getenv "PATH")
+ with Not_found -> [] in
let paths = filter_map (
fun p ->
let path = p // executable in
--
2.7.4
2015 Oct 06
10
[PATCH 0/5] mllib: Hide bad String functions and miscellaneous refactoring.
Hide/prevent the use of bad string functions like String.lowercase.
These are replaced by safe functions that won't break UTF-8 strings.
Other miscellaneous refactoring.
Rich.
2008 Mar 01
1
model R^2 and partial R^2 values
Dear R-list members,
I am doing a CART analysis in R using the rpart function in the rpart package:
Phrag.rpart=rpart(PhragDiff~., data = Phrag, method="anova", xval=10).
I used the xerror values in the CP table to prune the tree to 4 nsplits:
CP nsplit rel error xerror xstd
1 0.098172 0 1.00000 1.02867 0.12768
2 0.055991 3 0.70548 1.00823 0.12911
3 0.029306 4 0.64949 0.83275 0.12074
4 0.018943 5 0.62019 0.86994 0.12467
5 0.010503 6 0.60124 0.86975 0.12080
6 0.010000 7 0.59074 0.87...