similar to: rpart error with 0-frequency factor levels (with partial fix) (PR#1378)

Displaying 20 results from an estimated 80 matches similar to: "rpart error with 0-frequency factor levels (with partial fix) (PR#1378)"

2002 Jan 25
0
rpart subsets
A few weeks back I posted that the subset feature of rpart was not working when predicting a categorical variable. I was able to figure out a simple solution to the problem that I hope can be included in future editions of rpart. I also include a fix for another related problem. The basic problem is that when predicting a categorical using a subset, the subset may not have all the categories
2002 Jan 28
0
rpart subset fix
(Apparently, I posted this to the wrong place. I am hopefully posting this is the correct place now. If not, please advise.) A few weeks back I posted that the subset feature of rpart was not working when predicting a categorical variable. I was able to figure out a simple solution to the problem that I hope can be included in future editions of rpart. I also include a fix for another related
2009 Apr 30
1
unexpected behavior of rpart 3.1-43, loss matrix
Hi, I just noticed that rpart behaves unexpectecly, when performing classification learning and specifying a loss matrix. if the response variable y is a factor and if not all levels of the factor occur in the observations, rpart exits with an error: > df=data.frame(attr=1:5,class=factor(c(2,3,1,5,3),levels=1:6)) > rpart(class~attr,df,parms=list(loss=matrix(0,6,6))) Error in
2006 Nov 30
0
extending data.frame with S4 class
Hi. When I extend "numeric" with S4 and create an instance, I get something that looks and acts like a numeric. When I extend "data.frame" and create an instance, I get a NULL 'core'. Why is this, and can it be fixed? setOldClass(), prototype=, and initialize() don't seem to help. Thanks, Tim ----
2009 Jun 10
1
R: Best way to plot a Matrix of all possible pair combinations
Hallo R Users, Please help I have some distance matrix data like > M[1:10,] [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.8750000 0.5000000 0.5000000 0.3750000 0.6250000 0.00000000 [2,] 0.8928571 1.0000000 0.0000000 0.8928571 0.1071429 0.00000000 [3,] 0.8928571 1.0000000 0.0000000 0.8928571 0.1071429 0.00000000 [4,] 0.8928571 1.0000000 0.0000000 0.8928571
2008 Aug 27
1
ifelse() fill order and recycling rules [Sec=Unclassified]
Hi all, Using R v2.7.1, platform i386-pc-mingw32 Can someone please shed some light on the behaviour of ifelse() for me? My intent is to calc relative proportions of z$b, at the same time subsetting z$b based on z$a. I could attack the problem other ways (suggestions welcome) but I am also intrigued by the _order_ in which ifelse seems to assign values, and how recycling works. For instance,
2011 Oct 24
4
Lm function: Error in model.frame.default
Hello, I am trying to get a linear model of y ~ log(x). *> lm (y~log(x))* However, I always get an error report: /Error in model.frame.default(formula = y ~ log(x), drop.unused.levels = TRUE) : variable lengths differ (found for 'log(x)')/ *Here was my y:* > y [1] 0.4500000 0.0500000 0.5000000 0.4000000 0.0000000 0.5000000 0.4000000 [8] 0.0500000
2006 Apr 17
0
Problem getting R's decision tree for Quinlan's golf exam ple data [Broadcast]
See ?rpart.control. I get: > golf.rp = rpart(Outlook ~ ., golf, control=rpart.control(minsplit=1)) > golf.rp n= 14 node), split, n, loss, yval, (yprob) * denotes terminal node 1) root 14 9 rain (0.2857143 0.3571429 0.3571429) 2) Temperature< 71.5 6 2 rain (0.1666667 0.6666667 0.1666667) 4) Temperature< 64.5 1 0 overcast (1.0000000 0.0000000 0.0000000) * 5)
2011 Apr 19
0
doSMP package works better than perfect, at least sometimes.
Some might have noticed that REvolution Computing released the doSMP package to the general public about a month and a half ago, which allows multiple cores to be accessed for parallel computation in R. Some of our physical habitat calculations were taking an extraordinary amount of time to complete and required over-weekend runs, which prompted our interest in this package. What follows
1997 Oct 31
0
DOS Client and Basic Redirector and security=user (PR#1378)
> It turns out that the MS Network Client for DOS Basic Redirector _always_ > sends a 24 byte password. So, I guessed at encryption, got 'libdes', > recompiled my smbd (again), found a 'spare' Silicon Graphics server and > installed Encryption on it. (ENCRYPTION.txt is very good). Yep, good guess. All encrypted passwords in SMB are 24 bytes long. The "basic
2019 Nov 06
2
[Bug 1378] New: UDP IPv6 destination address not usable
https://bugzilla.netfilter.org/show_bug.cgi?id=1378 Bug ID: 1378 Summary: UDP IPv6 destination address not usable Product: conntrack-tools Version: unspecified Hardware: x86_64 OS: All Status: NEW Severity: normal Priority: P5 Component: conntrack-daemon Assignee:
2007 Oct 22
2
[Bug 1378] New: incorrect port check in parse_forward()
https://bugzilla.mindrot.org/show_bug.cgi?id=1378 Summary: incorrect port check in parse_forward() Classification: Unclassified Product: Portable OpenSSH Version: 4.7p1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P3 Component: ssh AssignedTo: bitbucket at mindrot.org
2011 Oct 18
0
CESA-2011:1378 Moderate CentOS 5 i386 postgresql84 Update
CentOS Errata and Security Advisory 2011:1378 Moderate Upstream details at : https://rhn.redhat.com/errata/RHSA-2011-1378.html The following updated files have been uploaded and are currently syncing to the mirrors: ( md5sum Filename ) i386: 364bd6b291401fb91cf4a6c3ebf2f6ba postgresql84-8.4.9-1.el5_7.1.i386.rpm 5002e23d1d7a56908742cf23a5d58fef postgresql84-contrib-8.4.9-1.el5_7.1.i386.rpm
2011 Oct 18
0
CESA-2011:1378 Moderate CentOS 5 x86_64 postgresql84 Update
CentOS Errata and Security Advisory 2011:1378 Moderate Upstream details at : https://rhn.redhat.com/errata/RHSA-2011-1378.html The following updated files have been uploaded and are currently syncing to the mirrors: ( md5sum Filename ) x86_64: 72e907b4eaf6db414eb659a843595e6d postgresql84-8.4.9-1.el5_7.1.x86_64.rpm ecb76148eeb33dbc5718ac4055e35fce
2017 May 31
0
CEBA-2017:1378 CentOS 6 ksh BugFix Update
CentOS Errata and Bugfix Advisory 2017:1378 Upstream details at : https://rhn.redhat.com/errata/RHBA-2017-1378.html The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) i386: fc1bbb94b5fdabf00b0ff03a8257c94023dbba2614a88484406349deccc1073b ksh-20120801-34.el6_9.i686.rpm x86_64:
2018 May 30
0
CEBA-2018:1378 CentOS 7 spice BugFix Update
CentOS Errata and Bugfix Advisory 2018:1378 Upstream details at : https://access.redhat.com/errata/RHBA-2018:1378 The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) x86_64: 221d160bd48a63336ea937649ab36bc374699bf4a1c9ba89745e5cff6ef4089c spice-server-0.14.0-2.el7_5.3.x86_64.rpm
2010 May 28
3
Using a loop to define new variables
Hi, I'm a novice R user, much more used to SAS. My problem is pretty simple - basically, in a data frame, I have variables named x1,....,x10 and y1,...,y10; and I would like to create r1 = x1 / y1 etc Apologies if this is way too rudimentary - but I couldn't find any posts online which solve this exact issue. Cheers, Andre
2004 Aug 10
0
Check failed after compilation (PR#7159)
Full_Name: Madeleine Yeh Version: 1.9.1 OS: AIX 5.2 Submission from: (NULL) (151.121.225.1) After compiling R-1.9.1 on AIX 5.2 using the IBM cc compiler, I ran the checks. One of them failed. Here is the output from running the check solo. root@svweb:/fsapps/test/build/R/1.9.1/R-1.9.1/tests/Examples: ># ../../bin/R --vanilla < stats-Ex.R R : Copyright 2004, The R
2013 May 23
0
Code compilation: Drop certain statements in a function before calling it multiple times?
Hi, I make heavy use of verbose statements in my code, verbose output that can be enabled/disabled via an argument. Here is a dummy example: foo <- function(n=10, verbose=FALSE) { res <- 0; for (k in 1:n) { if (verbose) cat("Iteration ", k, "...\n", sep=""); res <- res + k; if (verbose) cat("Iteration ", k,
2011 Feb 28
2
typecasting a function from character to double
Hello, I try to plot a number of functions that are given by a textfile. This file looks like this: ---- (1+s) / (1+k) ; (1+(2*s)^2) / (1+k)^2 ; etc etc. ---- I import these functions into R with the 'readLines' command. This creates a table whose elements contain the conditions as character strings. I want to generically plot the functions (there are many) while varying k, but the type