search for: workclass

Displaying 3 results from an estimated 3 matches for "workclass".

2011 Nov 13
1
libary(Rweka) J48 design tree
...ollowing message plot(m1) Error in plot.Weka_tree(m1) : Plotting of trees with multi-way splits is currently not implemented. #The code library(RWeka) library(randomForest) library(party) if(require(mlbench, quietly = TRUE) && require(party, quietly = TRUE)) m1 <- J48(income2 ~ age+workclass+native.country, data = dataset) m1 plot(m1) and results #M1 Results workclass = ?: <=50K (1433.0/120.0) workclass = Federal-gov: <=50K (696.0/281.0) workclass = Local-gov: <=50K (1542.0/469.0) workclass = Never-worked: <=50K (5.0) workclass = Private: <=50K (16939.0/3705.0) workclass...
2010 Feb 16
2
Random Forest
Hi, i'm using randomForest package and i have 2 questions: 1. Can i drop one tree from an RF object? 2. i have a 300 trees forest, but when i use the predict function on new data (with predict.all=TRUE) i get only 270 votes. did i do something wrong? Thanks -- View this message in context: http://n4.nabble.com/Random-Forest-tp1557464p1557464.html Sent from the R help mailing list archive at
2011 Jul 09
1
Eliminate level information
...e that has some factor variables. One instance is > train$sex[2] [1] Male Levels: Female Male So the value is Male but a comparison like "Male" == train$sex[2] will always return FALSE because of the level information included. Another problem this creates is > factor(train$workclass[25:30]) [1] Private Local-gov Private NA Private [6] Private Levels: Local-gov NA Private > is.na(train$workclass[25:30]) [1] FALSE FALSE FALSE FALSE FALSE FALSE Which they are all false because of the levels data in the comparison. This would seem to be bug because I...