示例#1
0
def test_auc_cv():
    expected = 0.707577330303
    X, Y = get_data_from_svmlight("deliverables/features_svmlight.train")
    actual = get_acc_auc_kfold(X, Y)[1]
    assert_almost_equals(expected,
                         actual,
                         places=1,
                         msg="UNEQUAL Expected:%s, Actual:%s" %
                         (expected, actual))
def setup_module():
    global X_train, Y_train, X_test, Y_test
    X_train, Y_train = get_data_from_svmlight(
        "deliverables/features_svmlight.train")
    X_test, Y_test = get_data_from_svmlight("data/features_svmlight.validate")
def test_auc_cv():
	expected = 0.707577330303
	X,Y = get_data_from_svmlight("deliverables/features_svmlight.train")
	actual = get_acc_auc_kfold(X,Y)[1]
	assert_almost_equals(expected, actual,places=1, msg="UNEQUAL Expected:%s, Actual:%s" %(expected, actual))
def setup_module ():
    global X_train, Y_train, X_test, Y_test
    X_train, Y_train = get_data_from_svmlight("deliverables/features_svmlight.train")
    X_test, Y_test = get_data_from_svmlight("data/features_svmlight.validate")