vsha96 / mllib

Machine Learning in Haskell
BSD 3-Clause "New" or "Revised" License
29 stars 1 forks source link

We need testing and improve test coverage! #5

Open vsha96 opened 2 years ago

vsha96 commented 2 years ago

We don't have testing!

Solution: Add test cases for all models. e.g. for Mllib.Tree.Decision

x = [[1], [2], [3], [4]]
y = [0, 0, 1, 1]
tree = fitDecisionTree treeSetup (map vector x) y
tree
predict tree (map vector [[0], [1.6], [3.3], [10]])

expected output: [0, 0, 1, 1]

vsha96 commented 2 years ago

Testing was added. See HOW-TO-TEST.md

s1m0000n commented 2 years ago

This is related to #10. Performance testing should also be considered