X_train, y_train, c_train, X_test, y_test, c_test = generate_data(
n_train=n_train, n_test=n_test, contamination=contamination)
X = np.asarray([[1, 2],
[3, 4],
[5, 6]])
w = [[0.2], [0.6]]
average(X, w)
// TODO: place holder only
After Change
except TypeError:
print("{data_file} does not exist. Use generated data".format(
data_file=mat_file))
X, y = generate_data(train_only=True) // load data
except IOError:
print("{data_file} does not exist. Use generated data".format(
data_file=mat_file))
X, y = generate_data(train_only=True) // load data
else:
X = mat["X"]
y = mat["y"].ravel()