Answers.Body: <p>Decision tree nodes are split bases on the number of data samples, these numbers indicate the number of data samples they are fit to.
  In your case samples = 256. It is further split into two nodes of 154 and 102.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-29T14:37:32.067Z
Answers.Text: Thanks! And in the case of a Decision Tree Regressor what does that value mean? (on the same tree, from left to right I have 0, 1, 0, 0.44, 0.12)
Answers.UserDisplayName: Jessica Chambers
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-29T15:16:24.650Z
Answers.Text: that is the value you would obtain after regression from the tree, you can check this by running clf.predict() on the respective value to get the values 0, 1, 0, 0.44, 0.12  (assuming clf is the decision tree built)
Answers.UserDisplayName: thecomplexitytheorist
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-29T10:47:42.303Z
Answers.LastActivityDate: 2018-05-29T16:43:21.227Z
Answers.LastEditDate: 2018-05-29T16:43:21.227Z
Answers.UserDisplayName: thecomplexitytheorist
Body: <p>This is more of a technical question rather than a practical one.</p>
  
  <p>I've exported a decision tree made with python/scikit learn and would like to know what the "value" field of each leaf corresponds to.</p>
  
  <p><a href="https://i.sstatic.net/sE6DJ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/sE6DJ.png" alt="decision tree"></a></p>
  
Tags: <python><decision-trees>
Title: What do the values of the leaves of the decision tree represent?
UserDisplayName: Jessica Chambers
ThreadText: # What do the values of the leaves of the decision tree represent?
  
  (Asked by: username_0 on 2018-05-29)
  
  This is more of a technical question rather than a practical one.
  
  I've exported a decision tree made with python/scikit learn and would like to know what the "value" field of each leaf corresponds to.
  
  [![decision tree](https://i.sstatic.net/sE6DJ.png)](https://i.sstatic.net/sE6DJ.png)
  
  **Tags:** python, decision-trees
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-05-29. Score: 4 | Accepted answer
  
  Decision tree nodes are split bases on the number of data samples, these numbers indicate the number of data samples they are fit to.
  In your case samples = 256. It is further split into two nodes of 154 and 102.
  
  > **Comments:**
  > **username_0**: Thanks! And in the case of a Decision Tree Regressor what does that value mean? (on the same tree, from left to right I have 0, 1, 0, 0.44, 0.12)  
  > **username_1**: that is the value you would obtain after regression from the tree, you can check this by running clf.predict() on the respective value to get the values 0, 1, 0, 0.44, 0.12  (assuming clf is the decision tree built)  
  
  ---
  
  