示例#1
0
def test_pca():
    """Ensure that the TPOT PCA outputs the input dataframe when no. of training features is 0"""
    tpot_obj = TPOT()

    assert np.array_equal(
        tpot_obj._pca(training_testing_data.ix[:, -3:], 1, 1),
        training_testing_data.ix[:, -3:])
示例#2
0
def test_rbf():
    """Assert that the TPOT RBFSampler outputs the input dataframe when # of
    training features is 0"""
    tpot_obj = TPOT()

    assert np.array_equal(tpot_obj._pca(training_testing_data.ix[:,-3:], 0.1, 3),
                          training_testing_data.ix[:,-3:])
示例#3
0
文件: tests.py 项目: sunlchk/tpot
def test_rbf():
    """Assert that the TPOT RBFSampler outputs the input dataframe when # of
    training features is 0"""
    tpot_obj = TPOT()

    assert np.array_equal(
        tpot_obj._pca(training_testing_data.ix[:, -3:], 0.1, 3),
        training_testing_data.ix[:, -3:])
示例#4
0
文件: tests.py 项目: ANSWER1992/tpot
def test_pca():
    """Ensure that the TPOT PCA outputs the input dataframe when no. of training features is 0"""
    tpot_obj = TPOT()

    assert np.array_equal(tpot_obj._pca(training_testing_data.ix[:, -3:], 1), training_testing_data.ix[:, -3:])