Zaktualizuj 'decisiontree.md'
This commit is contained in:
parent
905a2d9c1e
commit
8d1f64fd58
@ -20,14 +20,14 @@ Kolejne cyfry odpowiadają za: nawodnienie pola, obecność chwastów, czy pole
|
||||
|
||||
```
|
||||
training_data = [[0, 0, 1, 0, "Zasadzic"],
|
||||
[0, 1, 1, 0, "Odchwascic"],
|
||||
[0, 0, 0, 0, "Podlac"],
|
||||
[0, 1, 0, 0, "Odchwascic"],
|
||||
[1, 0, 1, 0, "Zasadzic"],
|
||||
[1, 1, 1, 0, "Odchwascic"],
|
||||
[1, 0, 0, 0, "Czekac"],
|
||||
[1, 1, 0, 0, "Odchwascic"],
|
||||
[0, 0, 0, 1, "Zebrac"]]
|
||||
[0, 1, 1, 0, "Odchwascic"],
|
||||
[0, 0, 0, 0, "Podlac"],
|
||||
[0, 1, 0, 0, "Odchwascic"],
|
||||
[1, 0, 1, 0, "Zasadzic"],
|
||||
[1, 1, 1, 0, "Odchwascic"],
|
||||
[1, 0, 0, 0, "Czekac"],
|
||||
[1, 1, 0, 0, "Odchwascic"],
|
||||
[0, 0, 0, 1, "Zebrac"]]
|
||||
self.tree = build_tree(training_data)
|
||||
print_tree(self.tree)
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user