Ejemplo n.º 1
0
def test_fetch_libsvm_satimage():
    """Tests LIBSVM satimage dataset."""
    data = fetch_libsvm('multiclass', 'satimage.scale')
    check(data, (4435 * 2, 36), test_shape=(4435, 36))
Ejemplo n.º 2
0
def test_fetch_libsvm_cod_rna():
    """Tests LIBSVM cod-rna dataset."""
    data = fetch_libsvm('binary', 'cod-rna')
    check(data, (59535 * 2, 8))
Ejemplo n.º 3
0
def test_fetch_libsvm_liver_disorders():
    """Tests LIBSVM liver-disorders dataset."""
    data = fetch_libsvm('binary', 'liver-disorders')
    check(data, (145 * 2, 5), test_shape=(145, 5))
Ejemplo n.º 4
0
def test_fetch_libsvm_duke():
    """Tests LIBSVM duke dataset."""
    data = fetch_libsvm('binary', 'duke')
    check(data, (44 * 2, 7129))
Ejemplo n.º 5
0
def test_fetch_libsvm_australian():
    """Tests LIBSVM australian dataset."""
    data = fetch_libsvm('binary', 'australian')
    check(data, (690 * 2, 14))