Binary Decision Trees

Decision trees are an artificial intelligence (AI) technique used for making good decisions based on past experience. That experience need not be all from the life of one person; it can be gathered from anywhere, such as an informal survey, your personal observations, or statistics from any source you trust. To be useful for this technique, the information needs to be stored in the form of a list of discrete samples.

For example, suppose you're in the market for a car, new or used. You'd like to be able to benefit from the experiences of all your thousands of friends and acquaintances with the cars they've bought in the last few years. You ask them whether they've been happy with their cars and about the make, model, age, ...

Get Sams Teach Yourself Ruby in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.