def test_eval_size_half(self, TrainSplit, nn):
        X, y = np.random.random((100, 10)), np.repeat([0, 1, 2, 3], 25)
        X_train, X_valid, y_train, y_valid = TrainSplit(0.51)(
            X, y, nn)
        assert len(X_train) + len(X_valid) == 100
        assert len(y_train) + len(y_valid) == 100
        assert len(X_train) > 45
dataset/ETHPy150Open dnouri/nolearn/nolearn/lasagne/tests/test_base.py/TestTrainSplit.test_eval_size_half/original