public class ContextualBayesBanditTest {
@Test
public void testConvergence() {
final Random rand = RandomUtils.getRandom();
Matrix recipes = new DenseMatrix(100, 10)
.assign(new DoubleFunction() {
@Override
public double apply(double arg1) {
return rand.nextDouble() < 0.2 ? 1 : 0;
}
});