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