Displaying 20 results from an estimated 1000 matches similar to: "Request: Optimum value of cost complexity parameter "k" in "tree" package"
2009 Apr 09
1
request: maximum depth reached problem
Dear R community
Hope all of you are fine. I have a question regarding the an error message. Actually, I am trying to generate classification trees using "tree" package. It works well but for some datasets e.g., wine, yeast, boston housing etc. it gives an error message.
Error in tree(V14 ~ ., data = training.data, method = c("recursive.partitioning"), :
maximum
2006 Jun 03
8
dtrace causing sigtrap?
Just to let people know what my big picture is, I''m trying to write a script
that will let me run a program, and name a progeny of that program
that I want to debug. My script should find the first occurrence
of that progeny, and run it until it finishes initializing the
runtime linker, but stop it before it runs any shared library startup
routines. (Failing that, I''d be okay
2007 Mar 12
1
knncat question
I use knncat to make a predictive model
and get misclass rate
> knncat.m<-knncat(training.new,k=c(10,20),classcol=5)
> knncat.m
Training set misclass rate: 36.88%
then I try to calculate prediction accuracy by the following:
> pr.knncat.train <- predict
(knncat.m,training.new,training.new,train.classcol=5,newdata.classcol=5)
> tb.knncat.train <-table (pr.knncat.train,
2008 Oct 01
5
ustack()s of SIGSEGV''ed programs
Hi all,
I am trying to write a D script which would print ustack() for every
program in the system receiving SIGSEGV. All the stacks printed in
trap()/sigtoproc() context do not have meaningful symbols.
The following solves the problem to some degree but I''d much rather have
a self-contained D script.
dtrace -w -n ''fbt:genunix:sigtoproc:entry/arg2 == 11/ {
2012 Feb 02
1
knncat broken on R 2.14?
Hi,
Until recently I was using the knncat classifier function of
knncat on an old computer (2.12, Mac OS X 10.4), and
everything worked great.
However, now that I have updated to R 2.14.1 (on Mac OS X
10.7), knncat seems broken. Problems:
1. It seems to output verbose output by default, and
regardless of whether I put 0 or 1 into the verbose option.
2. It seems to just predict
2009 Mar 11
2
Couple of Questions about Classification trees
So I have 2 sets of data - a training data set and a test data set. I've been
doing the analysis on the training data set and then using predict and
feeding the test data through that. There are 114 rows in the training data
and 117 in the test data and 1024 columns in both. It's actually the same
set of data split into two. The rows are made of 5 different numbers. They
do represent
2008 Sep 14
1
Problem with misclass function on tree classification
I am working through Tom Minka's lectures on Data Mining and am now on Day 32. The following
is the link: http://alumni.media.mit.edu/~tpminka/courses/36-350.2001/lectures/day32/
In order to use the functions cited I followed the instructions as follows:
Installed tree package from CRAN mirror (Ca-1)
Downloaded and sourced the file "tree.r"
Downloaded the function
2009 Mar 19
1
Minimum cutsets
The minCut function in RBGL package returns only a value or the minimum cut. I would be
really greatful if any knows of any R function or package available for
finding all minimal cut sets ( i.e., components whose failure will
results in a network failure) between any given pair of vertices.
2010 Feb 20
5
Dtrace starts very slowly on T5440
Hi all,
We just got a shiny new T5440, and one of the first things I noticed
(besides the insane number of hardware contexts), is that dtrace takes
30 seconds to a minute to fire up scripts with 5-6 probes, where our
T5220 usually takes under a second. Shutdown is similar, though slightly
faster.
This is mostly annoying because it takes so long to attach that it''s
hard to tell when
2008 Feb 24
1
what missed ----- CART
Hi all,
Can anyone who is familar with CART tell me what I missed in my tree code?
library (MASS)
myfit <- tree (y ~ x1 + x2 + x3 + x4 )
# tree.screens () # useless
plot(myfit); text (myfit, all= TRUE, cex=0.5, pretty=0)
# tile.tree (myfit, fgl$type) # useless
# close.screen (all= TRUE) # useless
My current tree plot resulted from above code shows as:
2002 Feb 21
2
question regarding to The tree Package for R
I have a problem with running the tree package (dec.8, 2001) for R. The
problem is,
it will only give me 5/6 terminal node and then stop, while using Splus's
tree on the
same data with the same specification give me hundreds of nodes.
Here's a little more background info:
R-1.4.1
Solaris 5.7
rpart (most recent version)
tree (..)
Splus 6.0
Solaris 5.7
tree
2006 Jun 02
0
Re: Update libtheora-1.0alpha6
On Wed, May 31, 2006 at 05:52:33PM +0200, steven mestdagh wrote:
> please make it install the docs under share/doc/libtheora.
Thank you. Updated patch below.
A copy of this email goes to the list of theora. The following patch
for the port of libtheora-alpha6 for OpenBSD includes (among other things):
* a patch for examples/Makefile.in that doesn't link player_example
since it
2008 Sep 10
6
request: most repeated component of a list
Dear R community
I have stored the results of arrays in a list consist of J-components (say 200 components). Each component containing same no of columns but may be different no of rows. e.g
[[1]]
[,1] [,2] [,3] [,4] [,5]
[1,] 4 0 0 0 0
[2,] 4 3 4 0 0
[3,] 4 3 4 0 0
[4,] 4 3 0 0 0
[[2]]
[,1] [,2] [,3] [,4] [,5]
2010 Jun 09
3
bootpred for multinomial
I applied bootpred for multinomial logistic reg. (with nnet package). I used same as theta.fit and theta.predict of R for my data. but give me error. Can I do this with
response vriable;7 levels
predictor variables:5 (1 classifier, 4 continuous)?
Thanks alot
Azam
[[alternative HTML version deleted]]
2008 Oct 14
4
request: How to ignore columns having zero sums
Dear friends
I have an array consist of r-rows and c-columns e.g.
x=c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,0,0,0,0,0,0,0,0);
x1=array(x, dim=c(4,6))
output is
> x1
[,1] [,2] [,3] [,4] [,5] [,6]
[1,] 1 2 3 4 0 0
[2,] 1 2 3 4 0 0
[3,] 1 2 3 4 0 0
[4,] 1 2 3 4 0 0
How can i ignore columns having zero sums? Help in this regard
2009 Aug 28
13
putting a running app into trace mode
Suppose I have a USDT probe in Firefox and that I''m trying to catch
the startup with a probe like this:
proc:::exec-success
/execname == "firefox-bin"/
{
start = timestamp;
}
and stop tracing when Firefox hits this USDT probe:
mozilla:::main-entry
{
exit(0);
}
How do I put the running firefox-bin into "trace mode" so that my USDT
probe fires?
Thanks, Joel
2008 Jun 06
5
request: a class having max frequency
Dear R users
I have a very basic question. I tried but could not find the required result. using
dat <- pima
f <- table(dat[,9])
> f
0 1
500 268
i want to find that class say "0" having maximum frequency i.e 500. I used
>which.max(f)
which provide
0
1
How can i get only the "0". Thanks and
best regards
Muhammad Azam
Ph.D. Student
Department of
2008 Oct 15
3
request: How can we ignore a component of list having no element
Dear friends
There is a list of arrays comprising different no of rows and columns even sometimes NULL, such as [[2]] given below. How can we ignore [[2]] or others like this in the complete list. Any help in this regard is needed. Thanks
[[1]]
[,1] [,2]
[1,] 3 1
[2,] 3 1
[3,] 3 1
[[2]]
NULL
[[3]]
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] 3 1
2014 Nov 05
0
SYSAPPEND not replacing spaces
Hello,
The description of SYSAPPEND for the DMI information states that the spaces are replaced by underscores, but this replacement does not occur in 6.03. There's small bug present in triplicata in com32/elflink/ldlinux/readconfig.c:copy_sysappend_string(), com32/menu/readconfig.c:copy_sysappend_string(), and core/sysappend.c:copy_and_mangle() prevent proper replacement of spaces by
2008 May 28
3
request: which integer in each column is in majority
Respected R helpers/ users
I am one of the new R user. I have a problem regarding to know which of the integer in each column of the following matrix is in majority. I want to know that integer e.g. in the first column 1 is in majority. Similarly in the third column 4 is in majority. So what is the suitable way to get the desired integer for each column. I am looking for some kind reply. Thanks