mirror of
https://github.com/dkam/decisiontree.git
synced 2025-12-28 15:14:52 +00:00
Cast threshold to string in gsub
This commit is contained in:
@@ -190,7 +190,7 @@ module DecisionTree
|
||||
end
|
||||
label_text = "#{key} ''"
|
||||
if type(attr[0].attribute) == :continuous
|
||||
label_text.gsub!("''", attr[0].threshold)
|
||||
label_text.gsub!("''", attr[0].threshold.to_s)
|
||||
end
|
||||
|
||||
[parent_text, child_text, label_text]
|
||||
|
||||
Reference in New Issue
Block a user