golirev
Newbie level 1
Hi,
I've been doing the ML course from stanford on my own now that I have some time, and I cannot figure out why the course material shows the logistic regression hypothesis function as h = g(θT*x) where θ is a nx1 matrix (therefore θT is a is a 1xn) and X is a mxn matrix. Those dimensions are not compatible with each other. When I look at octave/matlab solutions the hypothesis function is implemented the other way around and without the transpose as h = g(x*θ). What am I missing? Why does this work?
Another way of making the dimensions compatible would be to transpose x but I haven't seen that done.
An explanation of the function is found on the following page
Machine Learning
Thanks
I've been doing the ML course from stanford on my own now that I have some time, and I cannot figure out why the course material shows the logistic regression hypothesis function as h = g(θT*x) where θ is a nx1 matrix (therefore θT is a is a 1xn) and X is a mxn matrix. Those dimensions are not compatible with each other. When I look at octave/matlab solutions the hypothesis function is implemented the other way around and without the transpose as h = g(x*θ). What am I missing? Why does this work?
Another way of making the dimensions compatible would be to transpose x but I haven't seen that done.
An explanation of the function is found on the following page
Machine Learning
Thanks