| 1 |
2025 May 6 4.1-25 Added in fixes made by Brian Ripley |
| 2 |
2023 Dec 4 4.1-23 Need to remember to build with --compact-vignettes=both |
| 3 |
2023 Dec 2 4.1-22 update C code to meet new CRAN standards |
| 4 |
2023 Oct 09 4.1-21 update R code to meet new CRAN standards |
| 5 |
2022 Oct 20 4.1-18 update C code to meet new CRAN standards |
| 6 |
update French translation |
| 7 |
zzzz zzz zz 4.1-17 plot.rpart() gained three new arguments (branch.col, branch.lty, |
| 8 |
branch.lwd) controlling the color, line type, and width of the branches. |
| 9 |
2019 May 21 4.1-16 Updated rpart.matrix to use lapply instead of a loop |
| 10 |
2019 Apr 11 4.1-15 Update saved test/example results because of changes to R random number generators |
| 11 |
2018 Jul 31 4.1-14 Change post.rpart.Rd example so as to not write outside tempdir() |
| 12 |
Changed name of solder to solder.balance and added in solder from the |
| 13 |
survival package (larger than solder.balance). Now data matches |
| 14 |
between the packages. |
| 15 |
Modified vignettes slightly |
| 16 |
|
| 17 |
2018 Jan 08 4.1-12 Merge ChangeLog files |
| 18 |
|
| 19 |
2017 Mar 12 4.1-11 Include directly-needed headers, update o/p for R 3.4.0. |
| 20 |
|
| 21 |
2015 Jun 29 4.1-10 Tweak imports. |
| 22 |
|
| 23 |
2015 Feb 11 4.1-9 Update Korean translations. |
| 24 |
Remove some unused assignments. |
| 25 |
|
| 26 |
2014 Mar 28 4.1-8 Update Polish translations. |
| 27 |
|
| 28 |
2014 Mar 24 4.1-7 Update French and German translations. |
| 29 |
Fix array-overrun in gini.c (detected by valgrind |
| 30 |
checks for adabag). |
| 31 |
|
| 32 |
2014 Mar 07 4.1-6 model.frame() method could fail when the recorded |
| 33 |
call was rpart::rpart(). |
| 34 |
|
| 35 |
2014 Jan 25 4.1-5 Avoid abbreviation in tests/treble.R |
| 36 |
More comprehensive Description: field. |
| 37 |
|
| 38 |
2013 Dec 10 4.1-4 Change pre-defined structure sizes to mitigate |
| 39 |
false positives from Undefined Behaviour Sanitizer. |
| 40 |
|
| 41 |
2013 Sep 01 4.1-3 Document TMT change to predict() output. |
| 42 |
|
| 43 |
2013 Aug 15 4.1-2 Replace calls to as.name(). |
| 44 |
Remove unused and un-exported rpartpl(). |
| 45 |
Correct plot.rpart.Rd as to where things are stored. |
| 46 |
Increase version dependence to >= 2.15.0, |
| 47 |
remove conditional paste0 from this package. |
| 48 |
|
| 49 |
2013 Mar 20 4.1-1 Add ko translations, update reference output for 3.0.0. |
| 50 |
|
| 51 |
2012 Nov 29 4.1-0 Remove rpconvert() (converted rpart2 trees). |
| 52 |
|
| 53 |
Clean up a lot of the R code. |
| 54 |
|
| 55 |
C code reformatted with GNU indent and |
| 56 |
-i4 -nut -ncdb -d1 -br -ce -il0 -npcs -brs |
| 57 |
then use whitespace-cleanup in Emacs. |
| 58 |
|
| 59 |
Call R_CheckUserInterrupts at each phase of |
| 60 |
cross-validation. |
| 61 |
|
| 62 |
Ensure that surrogates really are better than the |
| 63 |
default split (adj > 1e-10), and that at least 2 |
| 64 |
cases of non-zero weight go each way. |
| 65 |
|
| 66 |
Removed unused file src/s_xpred.c. |
| 67 |
|
| 68 |
2012 Nov 18 4.0-3 Add 'importance' to rpart object and to summary(): |
| 69 |
from TMT. |
| 70 |
|
| 71 |
'minlength' arg for tree() method. |
| 72 |
|
| 73 |
Improved handling of weights with zero fit, |
| 74 |
including bugfix for ordered factors. |
| 75 |
|
| 76 |
free_tree was commented out in rpart.c, and |
| 77 |
could crash as the structure was not zeroed. As a |
| 78 |
precaution, pointers which are freed are NULLed. |
| 79 |
|
| 80 |
s_xpred.c did not free the first instance of a tree. |
| 81 |
|
| 82 |
make_cp_list used calloc but did not free. |
| 83 |
|
| 84 |
Spell-check help pages and vignettes. |
| 85 |
|
| 86 |
Several examples needed par(xpd = TRUE) at |
| 87 |
default plotting sizes. |
| 88 |
|
| 89 |
2012 Nov 11 4.0-2 Add car90 dataset from TMT. |
| 90 |
|
| 91 |
'agree' in choose_surg.c needs to be double |
| 92 |
for fractional weights. |
| 93 |
|
| 94 |
Not use paste0() so R 2.14.x works. |
| 95 |
|
| 96 |
2012 Oct 26 4.0-1 Merge in updates from TMT: see inst/NEWS.Rd |
| 97 |
and below |
| 98 |
|
| 99 |
Use .Call for all C code. |
| 100 |
|
| 101 |
Use an environment in the package for 'parms' from |
| 102 |
plot.rpart(). |
| 103 |
|
| 104 |
Force byte-compilation for consistency. |
| 105 |
|
| 106 |
2012 Oct 03 3.1-55 Force use of registered symbols in R >= 3.0.0 |
| 107 |
Update Polish translations. |
| 108 |
Work on message formats. |
| 109 |
text(fancy = TRUE) gains a 'bg' argument. |
| 110 |
|
| 111 |
2012 Jun 27 3.1-54 Add Polish tranlations. |
| 112 |
|
| 113 |
2012 Jun 01 3.1-53 rpart, rpart.matrix: allow backticks in formulae. |
| 114 |
tests/backtick.R: regession test |
| 115 |
|
| 116 |
2012 Mar 04 3.1-52 src/xval.c: ensure unused code is not compiled in. |
| 117 |
|
| 118 |
2012 Jan 11 3.1-51 Change description of 'margin' in ?plot.rpart |
| 119 |
as suggested by Bill Venables. |
| 120 |
|
| 121 |
2011 Apr 09 3.1-50 Change licence to GPL-2 | GPL-3 |
| 122 |
Remove set-but-unused variable in src/xval.c |
| 123 |
|
| 124 |
2011 Mar 06 3.1-49 Update testall.Rout.save for R 2.13.0 |
| 125 |
|
| 126 |
2010 Dec 08 3.1-48 Avoid partial match to args, unnecessary as.vector. |
| 127 |
Update reference output for survival change. |
| 128 |
Correction to plot.rpart(compress = TRUE) from |
| 129 |
Stephen Milborrow. |
| 130 |
|
| 131 |
2010 Nov 03 3.1-47 Update rpart-Ex.Rout.save for 2.12.x |
| 132 |
|
| 133 |
2010 Jan 03 3.1-46 Update rpart-Ex.Rout.save |
| 134 |
|
| 135 |
2009 Jul 28 3.1-45 Add rpart-Ex.Rout.save file |
| 136 |
|
| 137 |
2009 May 18 3.1-44 Add German translations |
| 138 |
|
| 139 |
2009 Mar 09 3.1-43 Spelling in man/snip.rpart.Rd. |
| 140 |
Spacing issue in tests/testall.Rout.save |
| 141 |
Remove environments from fit$functions if basic |
| 142 |
plotcp() allows 'ylim' to be passed in |
| 143 |
|
| 144 |
2008 Oct 21 3.1-42 Make use of 1L etc, update plot.rpart to use dev.new |
| 145 |
|
| 146 |
2008 Apr 10 3.1-41 Add Russian translations |
| 147 |
|
| 148 |
2008 Mar 28 3.1-40 cosmetics on .Rd files, Date: field in DESCRIPTION |
| 149 |
|
| 150 |
2008 Feb 18 3.1-39 summary.rpart was missing a drop=FALSE. |
| 151 |
|
| 152 |
2007 Oct 03 3.1-38 Remove obsolete \non_function{} notation. |
| 153 |
|
| 154 |
2007 Jul 26 3.1-37 Correct spelling errors in man pages |
| 155 |
DESCRIPTION: GPL-2 only |
| 156 |
point to www.r-project.org for GPL-2. |
| 157 |
|
| 158 |
2007 Jun 12 3.1-36 Qualify nchar() where needed |
| 159 |
Update tests/testall.Rout.save for 2.6.x |
| 160 |
Add reference to usersplits.R in ?rpart. |
| 161 |
|
| 162 |
2007 Feb 23 3.1-35 Correct 'label' in text.rpart |
| 163 |
C-level formatg is replaced by sprintf. |
| 164 |
|
| 165 |
2006 Dec 24 3.1-34 Spelling corrections |
| 166 |
|
| 167 |
2006 Nov 29 3.1-33 Use control=NULL in deparsed calls |
| 168 |
|
| 169 |
2006 Sep 26 3.1-32 Missing 'drop=FALSE' in rpart, add tests/surv_test.R |
| 170 |
|
| 171 |
2006 Sep 04 3.1-31 Add depends on standard packages. |
| 172 |
|
| 173 |
2006 Jul 05 3.1-30 Update output for R 2.4.0's naprint |
| 174 |
Expand the LICENCE, and install it |
| 175 |
Update cu.summary.rda |
| 176 |
|
| 177 |
2006 Apr 13 3.1-29 Update tests output for changes in all.equal |
| 178 |
|
| 179 |
2005 Dec 30 3.1-28 Use registered symbols in .C/.Call |
| 180 |
|
| 181 |
2005 Dec 09 3.1-27 Add French and en@quot translations. |
| 182 |
|
| 183 |
2005 Nov 15 3.1-26 Add back entry-point registration. |
| 184 |
|
| 185 |
2005 Nov 09 3.1-25 Drop obselete test for existence of .checkMFClasses |
| 186 |
|
| 187 |
2005 Oct 17 3.1-24 Add missing drop=FALSE in na.rpart. |
| 188 |
Clarify predict.rpart.Rd and rpart.object.Rd. |
| 189 |
Add na.action arg to predict.rpart (instead of |
| 190 |
using the na.action used during fitting). |
| 191 |
|
| 192 |
2005 Apr 15 3.1-23 Use xpd=NA in example(rpart) |
| 193 |
|
| 194 |
2005 Feb 01 3.1.22 Improve error messages for possible translation. |
| 195 |
|
| 196 |
2004 Nov 17 3.1-21 Change logic for setting params on a device |
| 197 |
in plot.rpart. |
| 198 |
text.rpart.Rd: Mention use of xpd=TRUE. |
| 199 |
|
| 200 |
2004 Aug 25 3.1-20 Stop attempts to plot a degenerate tree |
| 201 |
|
| 202 |
2004 Aug 03 3.1-18 Conversion for R 2.0.0 & LazyData |
| 203 |
|
| 204 |
2004 Jun 22 3.1-17 Fix possible use of uninitialized `split' in bsplit.c |
| 205 |
Add drop=FALSE for probs prediction for a single case. |
| 206 |
|
| 207 |
2004 Jun 06 3.1-16 Replace long* by int* in rpartexp2.c |
| 208 |
|
| 209 |
2003 Dec 08 3.1-15 Update NAMESPACE for R 1.9.0 |
| 210 |
Capitalization issues in DESCRIPTION file |
| 211 |
|
| 212 |
2003 Nov 18 3.1-14 Test newdata types in predict.rpart |
| 213 |
Correct documentation for `y' in rpart.Rd |
| 214 |
|
| 215 |
2003 Jul 20 3.1-13 Remove unused vars |
| 216 |
|
| 217 |
2003 Mar 15 3.1-12 Update NAMESPACE file |
| 218 |
Use post not post.rpart |
| 219 |
|
| 220 |
2003 Mar 03 3.1-11 Reinstate rpart.matrix etc, as ipred used it (even |
| 221 |
though they were documented as for use in rpart). |
| 222 |
|
| 223 |
2003 Mar 01 3.1-10 Use namespace, REprintf. |
| 224 |
|
| 225 |
2002 Dec 10 3.1-9 Apparent typo in rpartcallback.s spotted by |
| 226 |
Torsten Hothorn. |
| 227 |
formatg uses e+/-0n not 00n under Windows |
| 228 |
|
| 229 |
2002 Jun 20 3.1-8 Remove use of registration fiasco |
| 230 |
|
| 231 |
2002 Jun 05 3.1-7 T -> TRUE in tests |
| 232 |
|
| 233 |
2002 Mar 26 3.1-6 based on rpart3 'release'. |
| 234 |
Bug fix from TMT for empty classes in training set. |
| 235 |
Bug fix for prediction from root-only tree. |
| 236 |
Register .C/.Call entry points. |
| 237 |
Add PACKAGE= to .C/.Call calls. |
| 238 |
Replace is.Surv by its definition |
| 239 |
Don't need FUN1 in text.rpart any more |
| 240 |
|
| 241 |
2002 Jan 14 3.1-5 path.rpart needs descendants(), node.match(). |
| 242 |
|
| 243 |
2002 Jan 04 3.1-4 Allow ylim to be passed to plotcp. |
| 244 |
Add NAOK=TRUE to formatg. |
| 245 |
Workaround for multiple symbols for MacOS X. |
| 246 |
|
| 247 |
2001 Nov 11 3.1-3 Change to zero-split case in rpart. |
| 248 |
Fixes from TMT re pruning single-node trees. |
| 249 |
|
| 250 |
2001 Sep 25 3.1-2 Fixes to predict.rpart, residuals.rpart. |
| 251 |
|
| 252 |
2001 Aug 23 3.1-1 Further fixes from TMT, xpred.rpart was not |
| 253 |
intepreting fit$parms correctly. |
| 254 |
|
| 255 |
2001 Aug 08 3.1-0 Further updates from TMT. |
| 256 |
More documentation updates and corrections. |
| 257 |
|
| 258 |
2001 Jul 25 3.0-2 Correct documentation for predict.rpart. |
| 259 |
Remove left-over frame$yprob in residuals.rpart. |
| 260 |
Use >= vs < in the labels for continuous splits. |
| 261 |
|
| 262 |
2001 Jul 03 3.0-1 Restore use of FUN1 in text.rpart, as NAs are |
| 263 |
handled differently in R. |
| 264 |
|
| 265 |
2001 May 25 3.0-0 New sources from TMT with user-specified splits. |
| 266 |
Use format(nsmall=) and naresid/naprint from |
| 267 |
R 1.3.0. |
| 268 |
Change na.rpart to make use of passing down the |
| 269 |
terms attribute in R 1.3.0. |
| 270 |
Explicitly get/set .rpart.parms* in user workspace. |
| 271 |
|
| 272 |
2001 Mar 31 2.0-3 Add priority: recommended |
| 273 |
Re-licence under GPL2 |
| 274 |
|
| 275 |
2000 Dec 05 2.0-2 Update for R 1.2.0: more careful use of malloc |
| 276 |
|
| 277 |
2000 Aug 12 2.0-1 Update for 2000/02/25 release of rpart, which |
| 278 |
added case weights |
| 279 |
|
| 280 |
2000 Feb 07 1.1-2 Header file changes for 0.99.0 (especially re error) |
| 281 |
Escape # in post.part.Rd and text.rpart.Rd |
| 282 |
|
| 283 |
1999 Dec 15 1.1-1 New version which uses weights. |
| 284 |
Change all occurrences of longs. |
| 285 |
|
| 286 |
1999 May 11 1.0-7 Fix bug in graycode.c, from TMT. |
| 287 |
All the examples now run correctly. |
| 288 |
|
| 289 |
1999 Apr 1.0-6 Add index of (test) datasets. |
| 290 |
|
| 291 |
1999 Feb 24 1.0-5 Correct rpart.branch.s to get(parms, inherits=TRUE). |
| 292 |
Add tolerance to tree.depth, needed for the Windows |
| 293 |
version. |
| 294 |
|
| 295 |
1999 Jan 06 1.0-4 Remove model.frame.rp, which was no longer needed |
| 296 |
now model.frame.default uses xlevels. |
| 297 |
Modified rpart.matrix to allow - in model formulae. |
| 298 |
Examples are now all executable (or commented out). |
| 299 |
|
| 300 |
1998 Jul 24 1.0-3 Added identify.rpart to work around R's limited |
| 301 |
identify. |
| 302 |
text is now generic in R, so removed from zzz.R. |
| 303 |
levels is now generic in R, so removed from zzz.R. |
| 304 |
Manual pages re-converted with Sd2Rd version 0.3-1. |
| 305 |
predict now uses xlevels to force agreement of |
| 306 |
levels of factors in newdata. |
| 307 |
|
| 308 |
1998 Jun 22 1.0-2 Manual pages converted with Details section |
| 309 |
snip.rpart implemented. |
| 310 |
|
| 311 |
1998 Jun 16 1.0-1 Original port |
| 312 |
|
| 313 |
------------------- Former file PORTING ------------------- |
| 314 |
src/*.{h,c} long -> int |
| 315 |
|
| 316 |
man/*.Rd convert *.d by Sd2Rd |
| 317 |
|
| 318 |
Don't implement code using naresid, which R does not have. |
| 319 |
F -> FALSE, T -> TRUE |
| 320 |
|
| 321 |
R/labels.rpart.s replace call to prlabel by S code. |
| 322 |
R/model.frame.rpart.s deparse calls |
| 323 |
R/na.rpart.s as x has no attributes in R, redesign |
| 324 |
R/plot.rpart.s change frame=0 to .GlobalEnv |
| 325 |
R/post.rpart.s change `title' trickery |
| 326 |
R/print.rpart.s remove nsmall in call to format |
| 327 |
attr(x, 'ylevels') not 'ylevel' |
| 328 |
R/rpart.branch.s get with inherits not frame=0 |
| 329 |
R/rpart.matrix.s adjust for different terms structure |
| 330 |
R/rpart.s single -> double |
| 331 |
sys.parent() -> sys.frame(sys.parent()) |
| 332 |
R/rpartco.s remove frame=0 several times |
| 333 |
R/snip.rpart.mouse.s drop frame=0 |
| 334 |
R/summary.rpart.s remove justify="left" in format |
| 335 |
remove comma in paste(... ,,collapse ...) |
| 336 |
attr(x, 'ylevels') not 'ylevel' |
| 337 |
R/text.rpart.s text.default prints "NA", so remove these |
| 338 |
remove density=0 in calls to polygon |
| 339 |
R/xpred.rpart.s single -> double |
| 340 |
sys.parent() -> sys.frame(sys.parent()) |
| 341 |
R/zzz.R a few missing functions. |
| 342 |
|
| 343 |
|
| 344 |
------------------- Former file ChangeLog.TMT ------------------- |
| 345 |
The changes documented since 3/2002, which is the date stated in Brian's |
| 346 |
version of the Description file. |
| 347 |
|
| 348 |
In Sept 2012 the current R version and the Mayo version were merged. |
| 349 |
|
| 350 |
14March02: When y was a factor, with no instances of one of the levels in |
| 351 |
the "middle" of the levels list, the program would generate NA due to |
| 352 |
division by 0. Fairly simple fixes to gini.c and rpart.s. The bug, and |
| 353 |
a very nicely documented test case, was supplied by Matthew Wiener. |
| 354 |
|
| 355 |
8Aug02: Small bug pointed out by Kai Yu in rundown.c - a missing pair of {}, |
| 356 |
which only apply if usesurrogate < 2 and there are lots of missings. Appears |
| 357 |
that the se of the xval error would be too small. |
| 358 |
|
| 359 |
29Oct02: Error in xpred.rpart.s, for a user split with a response vector >1, |
| 360 |
the "yback" vector was too short. (Diff the lines creating eframe with those |
| 361 |
of rpart.s, to see the obvious oversight!) Leads to a core dump. |
| 362 |
|
| 363 |
29Oct02: Fix error in branch.c, which was not watching out for missing |
| 364 |
values in the surrogate variable. Found due to close reading of the |
| 365 |
C code by Kai Yu. (I'm impressed!) |
| 366 |
|
| 367 |
12Nov02: Add the "return.all" argument to xpred.rpart, to fit the needs of |
| 368 |
Dan Schaid. Add the test case xpred.s to test it. |
| 369 |
|
| 370 |
28Nov02: Major changes to how indexing is done. In the older version, at a |
| 371 |
lower branch on the tree one would find the following code again and again: |
| 372 |
for (i=0; i<n; i++) { |
| 373 |
if (which[i] = current_node) { |
| 374 |
... all the work ... |
| 375 |
} |
| 376 |
If a node only had 20 of n=20,000 observations in it, the code still walked |
| 377 |
through all 20000. |
| 378 |
In the new code, the chain of routines is called with the pair |
| 379 |
(n1, n2). Consequences: |
| 380 |
|
| 381 |
a. The repeated code fragment is now the much more efficient |
| 382 |
for (i=n1; i<n2; i++) { |
| 383 |
A trivial test (continuous y, n=20000, 20 xvals, cp=0 to force deep trees) |
| 384 |
gave unix.time values of 107 vs 2526 seconds. This was a bit of a shock - |
| 385 |
I never assumed that quite so much of the time could be spent in |
| 386 |
inefficient bookkeeping. With shallower trees I would expect far less |
| 387 |
gain, maybe 2 fold (at n=2000 it was 10 vs 32 seconds). |
| 388 |
b. In nodesplit.c, extra work has to be done to modify the rp.sort |
| 389 |
array. See comments in the last block of nodesplit for a full |
| 390 |
explanation. |
| 391 |
c. Under the new regime, it turns out to be important to NOT sort |
| 392 |
the columns of the x matrix. As a consequence: |
| 393 |
1. There is no advantage to calling rpart with as.single(x) to |
| 394 |
save memory. The copy=F arg is a more efficient use of |
| 395 |
resources. (If the S manuals can be believed....) |
| 396 |
2. Internal variables have been changed to 'double', by redefining |
| 397 |
the constant "FLOAT" in rpart.h. |
| 398 |
3. Since X is not disturbed, it is now safe to use the is_na |
| 399 |
macro to test it, rather than passing the result of is.na(X) as |
| 400 |
a separate argument to the C code. This resulted in further |
| 401 |
algorithmic time savings in nodesplit.c and branch.c (depending on |
| 402 |
the number of surrogates that need to be used in splitting). |
| 403 |
d. Because tree building mixes up the rp.sorts array, we need to save |
| 404 |
an original copy for cross-validation. So the rewrite is not a total win -- |
| 405 |
we use somewhat more memory. Subsetting out a group of subjects |
| 406 |
turns out to be essentially the same code as was added to nodesplit. |
| 407 |
|
| 408 |
29Nov02: If the primary split sends exactly the same number left and right |
| 409 |
(same total weights actually), there should be no "go with the majority" |
| 410 |
default. Prior code always would choose left in this case, now chooses |
| 411 |
neither. |
| 412 |
|
| 413 |
29Nov02: The length of the response vector (numresp) added to the output |
| 414 |
structure. It was needed for xpred.rpart. |
| 415 |
|
| 416 |
2Dec02: Based on concerns of a user (whose email I currently can't find) about |
| 417 |
accuracy with asymmetric loss matrices, I spent the last 2 days creating |
| 418 |
a completely worked example. Their concerns, unfortunately, were completely |
| 419 |
justified. |
| 420 |
a. With L=loss asymmetric, the altered priors were computed wrong -- they |
| 421 |
were using L' instead of L! Upshot -- the tree would not not necessarily |
| 422 |
choose optimal splits for the given loss matrix. Once chosen, splits were |
| 423 |
evaluated correctly. The printed "improvement" values are of course the |
| 424 |
wrong onese as well. It's interesting that for my little test case, with |
| 425 |
L quite asymmetric, the early splits in the tree are unchanged -- a good split |
| 426 |
still looks good. Simple fix to gini.c. |
| 427 |
b. Fixed a minor bug in the Gini criteria -- the printed "improvement" |
| 428 |
values were too large by a constant = (#classes -1). Since they are only used |
| 429 |
to select the largest value, there was no practical impact. |
| 430 |
|
| 431 |
17Jun05: Fix offset bug -- the line in rpart.s didn't actually get |
| 432 |
the offset, but rather the variable number of the offset. |
| 433 |
|
| 434 |
27March05: Finish up the test suite for priors. Run test suite. Code is |
| 435 |
ready for distribution. |