def check_add_bias(X, X_train, test):
    assert (X_train.shape[1] == (X.shape[1] + 1)), (test + ": bias term wasn't added.")
def check_add_bias(X, X_train, test):
    assert (X_train.shape[1] == (X.shape[1] + 1)), (test + ": bias term wasn't added.")