Questions tagged [cart]
The cart tag has no usage guidance.
12
questions
0
votes
0
answers
230
views
How to group multiple categories of a categorical variable before feeding the data to a machine learning algorithm?
I have a labelled dataset to which I wish to fit a classification model (say, a Decision Tree). One of the categorical variables (say STATE) in the data has a lot ...
0
votes
1
answer
46
views
Simple CART model example
My goal is to test Decision tree to regression model.
My data is like below(python dataframe). There are 2 features F1 and F2. And there is label which is number.
How to make CART model from this ...
0
votes
1
answer
70
views
scikit learn target variable reversed (DecisionTreeClassifier)
I created a Decision Tree Classifier using sklearn, defined the target variable:
...
3
votes
2
answers
257
views
List of samples that each tree in a random forest is trained on in Scikit-Learn
In Scikit-learn's random forest, you can set bootstrap=True and each tree would select a subset of samples to train on. Is there a way to see which samples are used in each tree?
I went through the ...
1
vote
0
answers
15
views
Looking for CART/ML model that works with relative data [duplicate]
I am a beginner at AI and ML. I have been given a dataset, where I have noticed the columns are relative to one another. So is there any CART or ML model that can work with relative data ?
For example ...
0
votes
1
answer
78
views
how are split decisions for observations(not features) made in decision trees
I have read a lot of articles about decision trees, and every one of them only focused on telling how a feature/column is considered for split, based on criterion like gini index, entropy, chi-square ...
1
vote
1
answer
42
views
Random selection of variables in each run of python sklearn decision tree (regressio )
When I put random_state = None and run Decision tree for regression in python sklearn, it takes different variables to build tree each time?
Shouldn't there be only ...
1
vote
0
answers
38
views
Prediction in CART Decision Trees
I was studying the algorithm of CART (classification and regression trees), but the formula of the prediction is irritating me.
First we have the following definition:
Let $X:={x_1,...,x_N} \subset \...
1
vote
0
answers
49
views
What is the difference between a decision tree and something called "subgroup discovery algorithms"?
I'm reading a paper which states that subgroup discovery is:
...
2
votes
1
answer
139
views
Problems with decision tree labeling of nodes
Decision trees as we know assigns label to the node based on majority class voting. I am curious to find that what could be the problems with such labeling schemes? Does it lead to overfitting the ...
1
vote
0
answers
33
views
CART classification for imbalanced datasets with R
Hey guys i need your help for a university project. The main Task is to analyze the effects of over/under-smapling on a imbalanced Dataset. But before we can even start with that, our task sheet says, ...
3
votes
1
answer
107
views
Make a random forest estimator the exact same of a decision tree
The idea is to make one of the trees of a Random Forest, to be built exactly equal to a Decision Tree.
First, we load all libraries, fit a decision tree and plot it.
...