Open vsha96 opened 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]
[0, 0, 1, 1]
Testing was added. See HOW-TO-TEST.md
This is related to #10. Performance testing should also be considered
We don't have testing!
Solution: Add test cases for all models. e.g. for Mllib.Tree.Decision
expected output:
[0, 0, 1, 1]