mirror of
https://github.com/dkam/decisiontree.git
synced 2025-12-27 22:54:52 +00:00
Making code easier to read
This commit is contained in:
@@ -14,7 +14,9 @@ class Object
|
||||
end
|
||||
|
||||
class Array
|
||||
def classification; collect { |v| v.last }; end
|
||||
def classification
|
||||
collect { |v| v.last }
|
||||
end
|
||||
|
||||
# calculate information entropy
|
||||
def entropy
|
||||
|
||||
Reference in New Issue
Block a user