Decision Tree
Decision Tree
form of a tree.
• The nodes in the graph represent an event or choice and the edges of
using Python.
• As you might intuit from the name, decision tree learners build a
model in the form of a tree structure.
Imagine that you are working for a film studio, and your desk is piled
with screenplays.
Rather than read each one cover-to-cover, you decide to develop a
decision tree algorithm to predict whether a potential movie would fall
into one of three categories: mainstream hit, critic's choice, or box office
bust.
To gather data for your model, you turn to the studio archives to examine
the previous ten years of movie releases.
After reviewing the data for 30 different movie scripts, a pattern emerges.
There seems to be a relationship between the film's proposed shooting
budget, the number of A-list celebrities lined up for starring roles, and
the categories of success.