fix: ziemniaki problem
Added more examples to the learning set of decision tree.
This commit is contained in:
parent
1856cd5fca
commit
e053757bcf
@ -97,9 +97,6 @@ class Tile(pygame.sprite.Sprite):
|
|||||||
|
|
||||||
result = classes[predicted.item()]
|
result = classes[predicted.item()]
|
||||||
|
|
||||||
|
|
||||||
if result == "ziemniak":
|
|
||||||
result = 'marchew'
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
@ -222,3 +222,12 @@ grass,10,no_plant,marchew,dynia,grass,water,plant(seler)
|
|||||||
grass,10,no_plant,water,dynia,cebula,cebula,plant(seler)
|
grass,10,no_plant,water,dynia,cebula,cebula,plant(seler)
|
||||||
grass,10,no_plant,ogórek,dynia,cebula,grass,plant(seler)
|
grass,10,no_plant,ogórek,dynia,cebula,grass,plant(seler)
|
||||||
grass,10,no_plant,szpinak,dynia,fasola,grass,plant(seler)
|
grass,10,no_plant,szpinak,dynia,fasola,grass,plant(seler)
|
||||||
|
ziemniak,40,planted,water,grass,szpinak,grass,move
|
||||||
|
ziemniak,50,grown,szpinak,szpinak,grass,grass,move
|
||||||
|
ziemniak,10,planted,water,ziemniak,seler,water,move
|
||||||
|
ziemniak,20,planted,szpinak,szpinak,grass,seler,move
|
||||||
|
ziemniak,30,planted,grass,water,ziemniak,grass,move
|
||||||
|
ziemniak,40,planted,growing,grass,grass,burak,move
|
||||||
|
ziemniak,50,grown,growing,szpinak,water,grass,move
|
||||||
|
ziemniak,10,planted,growing,water,szpinak,marchew,move
|
||||||
|
ziemniak,20,planted,growing,szpinak,grass,kapusta,move
|
||||||
|
|
Loading…
Reference in New Issue
Block a user