Beispiel #1
0
def test_robust_scaler():
    """Ensure that the TPOT robust scaler outputs the input dataframe when no. of training features is 0"""
    tpot_obj = TPOT()

    assert np.array_equal(
        tpot_obj._robust_scaler(training_testing_data.ix[:, -3:]),
        training_testing_data.ix[:, -3:])
Beispiel #2
0
def test_robust_scaler():
    """Ensure that the TPOT robust scaler outputs the input dataframe when no. of training features is 0"""
    tpot_obj = TPOT()

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