igrigorik / decisiontree

ID3-based implementation of the ML Decision Tree algorithm
1.44k stars 130 forks source link

undefined method `to_a` for "abc":String #46

Open imi-milaap opened 5 years ago

imi-milaap commented 5 years ago

There is already one similar open issue. Consider a training set as"

[
        ["myself", 0, "#{my_name}"],
        ["friend", 1, "#{friend_name}"],
        ["family", 1, "#{member_name}"],
        ["other", 1, "#{other_name}"]
]

If all methods(my_name, friend_name etc) return same name, decision tree is breaking.