6/22/2023 0 Comments Graphviz decision treeFeed a dataset, containing a number of training instances, with a set of features and a target.The process of training and predicting the target features using a decision tree in Machine Learning is given below: How Does a Decision Tree in Machine Learning Work? ![]() That’s how a decision tree helps Monica to make the perfect weekend plan with her cousin. Rule 4: If it’s raining and the cable signal fails, then spend time in the coffee shop downstairs Rule 3: If it’s raining outside and the cable has signal, then watch a TV show. Rule 2: If it’s not raining but too sunny outside, then go for a movie. Rule 1: If it’s not raining and not too sunny, then go out for shopping. Each path from the root node to the leaf nodes represents a decision tree classification rule. Here, the interior nodes represent different tests on an attribute (for example, whether to go out or stay in), branches hold the outcomes of those tests, and leaf nodes represent a class label or some decision taken after measuring all attributes. Well, she decides to create a Decision Tree to make things easy. Now, Monica needs to make some plans for the weekend, whether to go out for shopping, go for a movie, spend time in the Central Park coffee shop, or just stay in and play a board game. Monica’s cousin Marry is visiting Central Park this weekend.
0 Comments
Leave a Reply. |