Questions tagged [decision-tree]

A decision tree is a decision support tool that uses a tree-like graph or model of decisions and their possible consequences, including chance event outcomes, resource costs, and utility. It is one way to display an algorithm.

Decision Tree could be just a graphical tool or the learning algorithm in a post.

2545 questions
0
votes
0 answers

What is the meaning of VERBOSE,N-JOBS in decision tree and what is backend process of GRIDSEARCH CV?

I want explanation for the above mentioned terms. I search many websites but I didn't got the meaning.
0
votes
0 answers

Choosing the values of cp, minsplit and maxdepth in CART

So, I am trying to figure out how to find the cp, min split, and maxdepth values for my problem. I came across an article (here is the link: https://uc-r.github.io/regression_trees) that shows the grid search approach. I don't understand though that…
0
votes
1 answer

Save scikit-learn model without datasets

I've trained a RandomForestClassifier model with the sklearn library and saved it with joblib. Now, I have a joblib file of nearly 1GB which I'm deploying on a Nginx/Flask/Guincorn stack. The issue is I have to find an efficient way to load this…
Stephane
  • 4,978
  • 9
  • 51
  • 86
0
votes
1 answer

how to make a table from a tree dot file?

how to make a table from a tree dot file?? for example: this lines from dot file : 0 [label="TV <= -0.239\nmse = 25.8\nsamples = 160\nvalue = 14.218"] ; 1 [label="TV <= -1.422\nmse = 7.824\nsamples = 66\nvalue = 10.015"] ; 0 -> 1…
0
votes
1 answer

Why the decision tree algorithm in python change every run?

I am following a course on udemy about data science with python. The course is focused on the output of the algorithm and less on the algorithm by itself. In particular I am performing a decision tree. Every doing I run the algorithm on python, also…
User_O
  • 115
  • 4
0
votes
1 answer

RStudio crashing when i run my decision tree model code

I'm trying to build a decision tree model using R language, and when i run the rpart() function, Rstudio freezes. i provided blow a link to the dataset i use, and the code too process it until the decision tree model building, any help is…
0
votes
1 answer

How to export Decision Tree model

I want to export my Decision Tree model to use with another python file. When I finished train model then I want to export that model.
0
votes
2 answers

Python- How to import DecisionTree Classifier from sklearn.tree

May I know how to import DecisionTreeClassifier from sklearn.tree as there is an error shown: ModuleNotFoundError: No module named 'sklearn' Also, every time when I want to import functions like pandas, I need to pip install them which is…
Janice Ng
  • 11
  • 3
0
votes
0 answers

Correctly Chaining Multiple Commands of Different types. Like a binary tree

I have a Command pattern with commands that run in sequence. The execution of the program starts at one rootcommand (node) and all Commands of Type Root can have like a tree always 2 choices. If the execution of the program returns true, the…
Claudio Ferraro
  • 4,551
  • 6
  • 43
  • 78
0
votes
1 answer

parse a binary decision tree and find all path by inversing the rule of the decision tree traversing to the right

the decision tree rule right now that I am having { "id": -1, "rule": "TOTAL_REVENUE <= 300", "left": { "id": "0", "rule": "TOTAL_DATA_DUR <= 39.5794", "left": { "id": "1", "rule":…
0
votes
1 answer

Creating a Decision Tree in Python, Numerical and Categorical Variables: "Unable to coerce to Series"

Creating a Decision Tree and the dataset has 21 columns, a mix of numeric and categorical variables. Using sklearn, I understand it does not support categorical variables. I converted categorical to numeric using Label Encoding while also separating…
0
votes
0 answers

Decision Tree Model, Splitting dataset into training and test -- Value Error: Could not convert string to float 'A12'

I am trying to build a predictive model for a bank that needs to decide who will be approved for a loan based on the applicant's demographic and socio-economic profiles. The dataset has columns that detail an applicant's age, employment, credit…
0
votes
0 answers

Framework for minimizing time complexity of generalized search

I have training in pure math but not in statistics, computer science, and information theory so I am a bit lost here and would really appreciate any guidance. I am looking for some helpful ways to frame a general search approach which would minimize…
Amatya
  • 1,203
  • 6
  • 32
  • 52
0
votes
0 answers

Dtreeviz - Same feature on tree level

So I used dtreeviz to get a better view of my decision tree, I quadruple checked all the data, model and everything I did before plotting the decision tree, but when looking at it, we can see on the first level of the tree, that the two features are…
arlaine
  • 199
  • 8
0
votes
1 answer

Retail CDT (Category Decision Tree) in R

I am trying to analyze a big data of many retail store transaction, within a particular category. My goal is to build a market structure tree, than will be based on shopper choices - what is the most/least important attribute (attaching a photo for…
1 2 3
99
100