I have been reading about logistic regression and it says that the hypothesis functions is as following:
Theta is a vector that is transposed. If x is a scalar, then their product is a vector. How do you calculate for instance 1^[1 2 3] ?
I have been reading about logistic regression and it says that the hypothesis functions is as following:
Theta is a vector that is transposed. If x is a scalar, then their product is a vector. How do you calculate for instance 1^[1 2 3] ?
$x$ is almost certainly a vector of the same size as $\theta$ so the result is a scalar. In general it doesn't make sense to take the exponential of a vector. The exponential is defined as $$e^x=\sum \frac{x^n} {n!}$$ This makes sense if $x$ is a scalar or a matrix, but vectors in general don't have a product operation.