This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Python Cheatsheet | |
| ================= | |
| ################################ Input & Output ############################### | |
| name = input('please enter your name: ') | |
| print('hello,', name) | |
| ageStr = input('please enter your age: ') | |
| age = int(ageStr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # decision_tree.R | |
| # | |
| # Artificial Intelligence A Modern Approach (3rd Edition): Figure 18.5, page 702. | |
| # | |
| # Figure 18.5 The decision-tree learning algorithm | |
| # | |
| # Author: [email protected] | |
| # | |
| decision_tree <- function(class, examples) | |
| { |