Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def best(dataset):
- a = bestAttribute(dataset, m.attributes)
- print(a, mostCommon(dataset))
- for value in a.values:
- subset = select(dataset, a, value)
- b = bestAttribute(subset, m.attributes)
- print(b, mostCommon(subset))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement