mirror of
https://github.com/dkam/decisiontree.git
synced 2026-03-29 15:19:20 +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