Displaying 11 results from an estimated 11 matches for "misclass".
Did you mean:
isclass
2008 Sep 14
1
Problem with misclass function on tree classification
.../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 "clus1.r"
Having defined a tree "tr, when I write "misclass(tr,x$test)" as shown in the link
I get an error message that "R does not find the function pred1.tree".
Is this function included in the tree package? If so it was not in my download. Is this a bug?
Do you know of a fix?
Thanks for your help
Meir
<<clus1.r>> <<...
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...
2009 Mar 11
2
Couple of Questions about Classification trees
...ade of 5 different numbers. They
do represent something but it would take too long to explain.
I want to try and find a classification rule for the 5 numbers in the rows
based on the columns so I created a classification tree and plotted that and
then pruned it. My question is how do you print the misclassification rate
at each node on the actual diagram of the classification tree. I can't seem
to get it up there. In my notes it uses gmistext() but I have a feeling that
it's for Splus rather than R as gmistext() doesn.t work for me either.
Second question is when I try using the predict.tre...
2012 Feb 02
1
knncat broken on R 2.14?
...class "0".
3. I can see this problem even when running the example
script under ?knncat.
Given example from ?knncat, and expected behavior:
=======================
library(knncat)
library(MASS) # Load data set
syncat <- knncat (synth.tr, classcol=3)
## Not run: syncat
Train set misclass rate: 12.8
synpred <- predict (syncat, synth.tr, synth.te,
train.classcol=3,
newdata.classcol=3)
table (synpred, synth.te$yc)
synpred 0 1
0 460 91
1 40 409
=======================
Actual behavior:
==========================================
> librar...
2005 May 12
1
modifications to text.tree function
Hi.
I have to make some minor modifications to the text.tree function - I
don't like the way it prints the split labels (they are too long in my
case and overlap). I tried to make s simple modification to the
text.tree function so that it will limit the number of significant
digits in tree labels, but could not - the original function uses some
undocumented "treeco" function, which
2008 Feb 24
1
what missed ----- CART
...ree.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:
1. overlapped #s caused by unsuitable length of branch.
2. no misclassification rates: 'misclass.tree' only brings up the error of ' misclassification error rate is appropriate for factor responses only', but my response y is 0/1 data.
3. Unsuitable location of notations: there are not two notation of splitting criteria on the two branches when a no...
2009 Apr 01
1
Request: Optimum value of cost complexity parameter "k" in "tree" package
...i use k=NULL, then it will not plot the resultant tree.
library(tree)
ds=iris; iris=transform(iris, Species = factor(Species, labels = letters[1:3]))
miris <- tree(Species ~ ., data = iris, control=tree.control(nobs = 150, minsize = 5, mincut = 2)); iris.prun=prune.tree(miris, method=c("misclass"), best = NULL, k=0); iris.prun; summary(iris.prun); plot(iris.prun)
best regards
Muhammad Azam
[[alternative HTML version deleted]]
2001 Jul 19
2
classification tree out put
Hello,
I'm attempting to classify data using tree(). summary(tree()) indicates
that I have a very good classification rate. What I'd like to know is
which tokens in the data set are correctly classified and which are not.
Is there a method for associating the classification with the token?
I've been reading Chambers and Hastie (1992) chapter 9 on tree-based
models, but find no
1998 Aug 18
1
Problem in "configure" for Solaris (cc) -- solved (partly) --
...details of the compiler failure appear ....
As for speed comparisons:
A piece of the ch14 script from V&R2 (highly C-dependent), Solaris 2.6,
Sparc 20 (about 4 years old)
library(MASS)
library(tree)
data(fgl)
unix.time({
fgl.tr <- tree(type ~ ., fgl)
fgl.cv <- cv.tree(fgl.tr,, prune.misclass)
for(i in 2:5) fgl.cv$dev <- fgl.cv$dev +
cv.tree(fgl.tr,, prune.misclass)$dev
fgl.cv$dev <- fgl.cv$dev/5})
gcc2.8.1 60.26secs
cc SC4.0 60.35secs
(the close agreement is fortuitous: I had to tune each to get about
10% improvement in speed).
Brian
--
Brian D. Ripley,...
2007 Jun 16
0
Function for misclassification rate/type I,II error??
HI
Is there any function in R that tells us error rate(misclassification rate)
for logistic regression type classification?
i also want to know the function to determine type I and type II error.
I have found a link where "misclass" and "confusion" are used. But I dont
know the package name.
http://alumni.media.mit.edu/~tpminka/courses/3...
1999 Apr 13
1
outer fails with group generic operations on factors (PR#166)
...in match.fun does
not understand group generics, and gets
Browse[1]> FUN
.Primitive("!=")
This _should_ launch Ops.factor, but does not.
> "!="(A, B)
[1] FALSE FALSE
> get("!=")(A, B)
Warning: "" not meaningful for factors
[1] NA NA
This causes misclass.tree(, detail=F) in package tree to fail.
--please do not edit the information below--
Version:
platform = sparc-sun-solaris2.6
arch = sparc
os = solaris2.6
system = sparc, solaris2.6
status =
status.rev = 0
major = 0
minor = 64.0
year = 1999
month = April
day = 8
language = R
Searc...