Over to You
In the previous chapter, you escaped a paper bag; in this chapter, you used supervised machine learning to locate the edges of the paper bag. To keep things simple, you used category data, treating each coordinate as a specific value, rather than a number from a possible range. Because you knew what shape the paper bag was, you were able to reformulate the decision tree using numeric ranges. Other decision tree algorithms, such as C4.5 or random forests can use numeric data directly.[17] Their details differ, but they still start with training data, dividing it up to build a model.
You can tweak your edge-finding algorithm to cope with rectangles instead of squares. Decision trees tend to carve up the input space into rectangular ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access