Files
QMUL_Machine_Learning/hypothesis_to_vector.m
2016-10-19 09:37:09 +01:00

7 lines
197 B
Matlab

function hypothesis_vec = hypothesis_to_vector(X, theta)
hypothesis_vec = [];
for i = 1:size(X, 1)
hypothesis_vec = [hypothesis_vec; calculate_hypothesis(X, theta, i)];
end
end