Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
167 views

I am trying to plot a simple conditional inference tree using the "partykit" package in R. But when I try to produce the plot of the ctree, it produces the following error - Error in valid....
Gourav Karmakar's user avatar
2 votes
0 answers
68 views

I computed a conditional recursive partitioning tree in R with that code: library(partykit) fit.all.cov <-ctree(as.factor(status) ~ Age.groups + Sex + Education + Migrant.background + Income + ...
user21637271's user avatar
1 vote
1 answer
278 views

For illustration purposes, I try to modify the terminal node of a ctree in partykit. I created some data and fitted an unpruned decision tree. Unsurprisingly the tree grows very large, and I have ...
Linus's user avatar
  • 343
-1 votes
1 answer
85 views

I would like a bit of help with my code. This is my first time posting, so please excuse the length. Overview: I have conducted a CTREE analysis to identify certain intersections associated with a ...
temmy18's user avatar
0 votes
1 answer
48 views

In a simulation study, I'm using the REEMctree model provided by Fu & Simonoff (2015). They created a function with which one can fit REEMctree models. The function creates an object in which I'd ...
Linus's user avatar
  • 343
0 votes
1 answer
153 views

I am currently struggling with recursiving partition and bagging/bootstrapping of some data. As the data is confidential I have provided a reproducible example using the "GBSG2" data. In ...
Tobias Berg's user avatar
1 vote
1 answer
308 views

I have been currently searching for a method to obtain the best fit α (significance level) for a Conditional Inference Tree model (using the party package) in RStudio. I have just realized I've been ...
Kiwi's user avatar
  • 11
1 vote
0 answers
117 views

I'm using the ctree function from partykit from my analysis. My ctree contain all binary/categorical variables. When I change the value labels of the binary categorical variables, I end up getting a ...
Bisola's user avatar
  • 31
2 votes
1 answer
96 views

I have data like below: structure(list(`h:23705` = c(7.16421907753984, 7.18756733158759, 6.71825354529678, 7.06582535720175), `h:9076` = c(3.63561443591981, 8.80110411390239, 3.42736295167031, 6....
Nmgh's user avatar
  • 155
1 vote
2 answers
189 views

I am not able to find (in MSDN), if parameter int cchTextMax of TVITEM structure is included the end null terminated string character \0 or no. TVITEM structure is used by CTreeCtrl or CTreeView class....
Michal Hadraba's user avatar
2 votes
1 answer
407 views

I'm trying to replicate the procedure proposed here on my data but I get the following error: Error in interval.numeric(x, breaks = c(xmin - tol, ux, xmax)) : invalid number of intervals target is ...
Nico's user avatar
  • 211
0 votes
0 answers
130 views

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) ...
DataProphets's user avatar
0 votes
0 answers
63 views

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 ...
Alice's user avatar
  • 1
3 votes
1 answer
379 views

I need to plot a conditional inference tree. I have selected the party::ctree() function. It works on the iris dataset. library(party) (irisct_party <- party::ctree(Species ~ .,data = iris)) plot(...
Nick's user avatar
  • 1,126
0 votes
0 answers
679 views

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 ...
visu_hello's user avatar
-1 votes
1 answer
163 views

I get the following error after running p <- predict(credit_ctree,newdata=newcredit) I can't see the way to get it to come out right. Error in checkData(oldData, RET) : Classes of new data do not ...
youngceltic's user avatar
0 votes
1 answer
439 views

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 ...
Cris's user avatar
  • 21
2 votes
1 answer
123 views

I wanted to make a list for for loop, than I wanted to use it for ctree like below. but I couldn't. I am getting, some errors like "character is not supported" even I change the list to ...
sanwhere's user avatar
1 vote
1 answer
272 views

I would like to create a table to summarise the splitting rules of a conditional inference tree (ctree) so that each predictor is in a separate column and each row is a terminal node with ...
Gianluca Fabiano's user avatar
0 votes
1 answer
268 views

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 "...
datadocsharma's user avatar
0 votes
2 answers
469 views

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 ...
Razan's user avatar
  • 11
1 vote
1 answer
138 views

I wonder if partkykit::ctree function ignores variables with non syntactic names or am I missing something? Toy example: myData<-data.frame( Y = factor(rep(LETTERS[1:3], each=10)), x1 = 1:30, ...
Łukasz Deryło's user avatar
1 vote
1 answer
294 views

I'm having a problem with partikit weighted conditional tree models trained on data with missing values. I'm manually creating a bagged tree model by giving different integer weights to observations ...
Bakaburg's user avatar
  • 3,353
2 votes
1 answer
363 views

I'm trying to build a random forest using model based regression trees in partykit package. I have built a model based tree using mob() function with a user defined fit() function which returns an ...
Kiran KG's user avatar
1 vote
1 answer
280 views

Im a currently working with ctree from R package "partykit" and I was wondering if there is a way to obtain the full path from terminal nodes to root. I would like to have for each leaf the ...
ChrisPol's user avatar
1 vote
2 answers
214 views

The results of the plot can be normally arranged in grids. I currently have an issue by plotting the results of the ctree function from the party package in a grid. This question is a duplicate of a ...
user avatar
1 vote
2 answers
379 views

For a node x in partykit::ctree object, I use the following lines to get the splitting variables on the node: k=info_node(x) names(k$p.value) However, a splitting variables of a node returned by this ...
blueskyddd's user avatar
3 votes
1 answer
4k views

I have an issue with creating a ROC Curve for my decision tree created by the rpart package. My goal was to predict "y" the success of the bank's marketing campaign. In the end, you can get a "yes" ...
Meax's user avatar
  • 31
3 votes
1 answer
641 views

I am trying to predict the frequency of an outcome and I have a lot of data. I have already fitted a glm to the data and now I am trying to use ctree to understand any complex interaction in the ...
CHF18's user avatar
  • 33
0 votes
1 answer
990 views

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 ...
nahalh's user avatar
  • 1
3 votes
0 answers
949 views

I'd like to achieve picture like this, The following is what I have now: How can I modify the code to acquire the picture? I mean,how to remove the $err and $distribution in terminal nodes? I have ...
Patrick Star's user avatar
4 votes
1 answer
887 views

I am working with ctree and my data set has a covariate of factors that create a node. There are enough factors for that covariate and their names are long enough that they overlap on each other in ...
shea's user avatar
  • 528
0 votes
1 answer
820 views

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 ...
Kaitlin's user avatar
  • 83
0 votes
1 answer
163 views

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)-&...
vero's user avatar
  • 31
0 votes
0 answers
765 views

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',...
Avi's user avatar
  • 2,293
1 vote
3 answers
616 views

I'm trying to connect c-TreeSQL using Python. I know I have the correct driver because I can connect using George Poulose's Query Tool I have tried these variations and each one has crashed; ...
jacobJACOBjacob's user avatar
0 votes
1 answer
742 views

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 ...
Avi's user avatar
  • 2,293
0 votes
1 answer
412 views

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 ...
user3063850's user avatar
0 votes
0 answers
379 views

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 = "...
Javide's user avatar
  • 2,657
0 votes
0 answers
118 views

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 ...
Ab Bennett's user avatar
  • 1,432
-2 votes
1 answer
857 views

Alright so I have part of the script I am writing that will insert new addresses if its already in one table but the issue is i get an exception that I can't seem to fix, I have debugged many times ...
Bartholomew Allen's user avatar
1 vote
1 answer
192 views

Okay so from my previous question this is one iteration of how I am pulling data from the SQL Server and then inserting that same data into CtreeACE where the table is already setup for the values to ...
Bartholomew Allen's user avatar
0 votes
1 answer
185 views

Okay so I am writing a C# script that pulls data from an SQL Server and then within that same script inserts the pulled data into the already made table for the pulled data to go into. I would like ...
Bartholomew Allen's user avatar
0 votes
1 answer
127 views

Given a set of data and trying to insert all of the rows into the table it seems c-treeACE throws me an error message saying its a syntax error and highlights the zipcode here is an example: here is ...
Bartholomew Allen's user avatar
1 vote
1 answer
632 views

I keep running the code/debugger and even set break points so I can step through the code and haven't been able to find where what the syntax error is I know its within this C# method for creating a ...
AceNinja1101's user avatar
4 votes
1 answer
3k views

When plotting a ctree model from partykit, I understand that it choose a default to prevent overfitting with overgrown trees. This default value sometimes results in an overly simple tree. To use a ...
jardim's user avatar
  • 43
1 vote
0 answers
788 views

Why is it better to have a circular range query answered with an already constructed C-tree than an already constructed R-tree? (Assuming I'm correct). It seems to be more complicated to calculate ...
user avatar
0 votes
1 answer
177 views

I have a nasty, nasty data layout that I am forced to work with. I finally got a working query using C# and a for loop executing the same query over and over but adjusting which fields are called, but ...
Alan's user avatar
  • 2,114
1 vote
2 answers
801 views

We are trying to establish connection between Tosca and ctree faircom database but it fails to establish the connection. Getting the following error message: 'Could not establish a connection using ...
Arul S's user avatar
  • 13
1 vote
1 answer
167 views

Here is my code based on the CTDB tutorial. #include <stdio.h> #include <tchar.h> #include "ctdbsdk.h" /* c-tree headers */ #define END_OF_FILE INOT_ERR /* INOT_ERR is ctree's 101 error....
Ray Hulha's user avatar
  • 11.3k