mirror of
https://github.com/dkam/decisiontree.git
synced 2025-12-28 07:04:53 +00:00
convert labels to string - closes #13
This commit is contained in:
@@ -42,6 +42,7 @@ module DecisionTree
|
||||
end
|
||||
|
||||
def train(data=@data, attributes=@attributes, default=@default)
|
||||
attributes = attributes.map {|e| e.to_s}
|
||||
initialize(attributes, data, default, @type)
|
||||
|
||||
# Remove samples with same attributes leaving most common classification
|
||||
|
||||
Reference in New Issue
Block a user