print '                        %s' % 'root (3, 1)'
print '         |---------------|----------------|'
print '         |                                |'
print '         |                                |'
print '         |                                |'
print '      node_1 (2,0)                  node_1 (1,1) '

"""
Explanation: Preventing Overfitting in Decision Trees
Question 1
<img src="images/lec4_quiz01_pic01.png">
Screenshot taken from Coursera
<!--TEASER_END-->

Question 2
<img src="images/lec4_quiz01_pic02.png">
Screenshot taken from Coursera
<!--TEASER_END-->

Question 3
<img src="images/lec4_quiz01_pic03.png">
Screenshot taken from Coursera
<!--TEASER_END-->

Question 4
<img src="images/lec4_quiz01_pic04.png">
Screenshot taken from Coursera
<!--TEASER_END-->

Question 5
<img src="images/lec4_quiz01_pic05.png">
Screenshot taken from Coursera
<!--TEASER_END-->

Question 6
<img src="images/lec4_quiz01_pic06.png">
Screenshot taken from Coursera
<!--TEASER_END-->

Question 7
<img src="images/lec4_quiz01_pic07.png">
Screenshot taken from Coursera
<!--TEASER_END-->

Question 8
<img src="images/lec4_quiz01_pic08.png">
Screenshot taken from Coursera
<!--TEASER_END-->

 Answer 
At this node, the y values have:
- 3 True (+1)
- 1 False (-1)
The classification error is: 1/4 = 0.25
Question 9
<img src="images/lec4_quiz01_pic09.png">
Screenshot taken from Coursera
<!--TEASER_END-->

 Answer 
- x1 has 2 zeros and 2 ones, so spliting by x1, we have the tree structure as follow
End of explanation
"""


print '                        %s' % 'root (3, 1)'
print '         |---------------|----------------|'
print '         |                                |'
print '         |                                |'
print '         |                                |'
print '      node_1 (2,1)                  node_1 (1,0) '

"""
Explanation: Classification error = 1/4 = 0.25
Question 10
<img src="images/lec4_quiz01_pic10.png">
Screenshot taken from Coursera
<!--TEASER_END-->

 Answer 
- x2 has 1 zeros and 3 ones, so spliting by x2, we have the tree structure as follow
End of explanation
"""


