1 ! Copyright (C) 2012 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: assocs kernel machine-learning.rebalancing math
4 math.statistics math.text.english sequences tools.test
6 IN: machine-learning.rebalancing.tests
9 { 1 1 1 2 } [ [ number>text ] map ] [ ] bi
10 100,000 balance-labels nip
11 histogram values first2 - abs 3,000 <
16 { 1 1 1 2 } [ [ number>text ] map ] [ ] bi
17 { 1/10 9/10 } 100,000 skew-labels nip
18 histogram values { 10,000 90,000 } -.05 v~