Questions tagged [ctree]
52 questions
0
votes
0 answers
R Object Occupies 4.5 Times as Much Memory to Load, as is its Size
I'm trying to load a binary decision tree into R; but I get the error: Error: cannot allocate vector of size 2.0 Mb. The file size is actually 900 MB
My PC's specs are:
Processor Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz 1.80 GHz
Installed RAM …

DataProphets
- 156
- 3
- 17
0
votes
0 answers
How to go to last row of result set in JDBC with ctree server
May I know that anyone have idea on how to go to last row of the result set in JDBC with ctree server?
We have try to use the rs.last() but it return the message said that "Driver not support this function".
Is anyone know in c-tree server, what is…

Alice Tan
- 1
- 1
0
votes
0 answers
Pruned decision tree in r, ctree
I'm developing a binary decision tree in R with the "party" package, ctree.
Further, I want to prune the tree with some controls (ctree_control) e.g., maxdepth, minsplit, and mtry. The model looks something like this:
tree <- ctree(Class ~ ., data =…

visu_hello
- 5
- 3
0
votes
1 answer
Weights vs weights in ctree CART conditional tree (party::ctree)
What are "weights" and "weights" in Conditional CARTs?
I am analysing a small data set (N=70) by recursive partitioning using CARTS. Specifically, the ctree function form the party package in R.
I am a bit confused about what are "weights" vs…

Cris
- 21
- 3
0
votes
1 answer
"Something is wrong; all the Accuracy metric values are missing" while using partykit, caret, recipes
I am trying to train around 15 machine learning models, using recipes (for consistent pre-processing) and caret (for consistent training). The only 2 models that consistently give me the error "Something is wrong; all the Accuracy metric values are…
0
votes
2 answers
how to build a tree in r?
I'm working on a student performance dataset and I get this message error
Error in trafo(data = data, numeric_trafo = numeric_trafo, factor_trafo = factor_trafo, :
data class “character” is not supported
In addition: Warning message:
In…

Razan
- 11
- 4
0
votes
0 answers
How to customise a ctree (package 'party')?
So I have a problem using ctree in the R package party. I can't use the package partykit because it can't search for unordered splits in >= 31 levels
I used this code:
set.seed(1234) #To get reproducible result
ind <-…

user241508
- 1
- 1
0
votes
1 answer
How to specify multiple splits in R-studio using classification tree- ctree?
I'm using 'ctree' for classification tree ( categorical response variable; New, Replace). I already got help from other available answers and forced the model to start splitting based on 'Year'. I have four independent variables (including 'Year").…

nahalh
- 1
- 2
0
votes
1 answer
Changing Variable Labels in 'ctree' plot
I'm struggling to try to make a CI tree from the 'party' package in R look presentable. So far this is what I have, in terms of cleaning the tree up.
current version of tree
What I would like to do is change the variable names on each individual…

Kaitlin
- 85
- 2
- 9
0
votes
1 answer
How to turn ctree nodes into a vector?
I'll explain my problem using an example with the iris table. Let's say I want to create a tree between sepal width and species. For this I will use this code:
ctree(Species~Sepal.Width,data=iris)->a
plot(a,type="simple")
The problem is that, if I…

vero
- 31
- 1
- 4
0
votes
0 answers
Error in ctree_control ... unused argument.. in R
I would like to add 2 hyper parameters to my ctree model. Here is the code that runs:
library(party)
dat1 <- fread('https://archive.ics.uci.edu/ml/machine-learning-databases/abalone/abalone.data',stringsAsFactors=T)
## split data to train and…

Avi
- 2,247
- 4
- 30
- 52
0
votes
1 answer
Error in tuneRF in R in if (n == 0) stop("data (x) has 0 rows") : argument is of length zero
I would like to optimize the values of hyperparameters of ctree() (randomforest).
I use the function tuneRF. I get the following error:
Error in if (n == 0) stop("data (x) has 0 rows") :
argument is of length zero
Here is my…

Avi
- 2,247
- 4
- 30
- 52
0
votes
1 answer
Attempting to read raw database file
I'm attempting to read data from a database file (which employees c-tree data structure). This is a very old product, and for various reasons, the ODBC drivers are no longer available to me.
What I have found is that the data is basically just…

user3063850
- 281
- 1
- 2
- 7
0
votes
0 answers
Cannot coerce class structure("BinaryTree", package = "party") to a data.frame
I have a conditional inference tree model (ctree) saved in an R .rda file and am trying to convert it into a Weka .arff file:
library("foreign")
load("my_ctree.rda")
write.arff(my_ctree, file = "outputFile.arff")
but I get error:
Error in…

Javide
- 2,477
- 5
- 45
- 61
0
votes
0 answers
ctree R not displaying levels
Having trouble using ctree in R, sometimes it does not display any levels at all, here is an example below.
Can anyone explain why. thanks
library("party")
df <- data.frame(matrix(ncol = 3, nrow = 0))
colnames(df) <- c("a", "b", "c")
…

Ab Bennett
- 1,391
- 17
- 24