I´d like to understand why the following code:
print((hypothesis(x, theta_)))
results in a array with this format
[0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5,
0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5,
0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5,
0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5,
0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5,
0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5,
0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5]
and when I apply the numpy.log function:
print(np.log(hypothesis(x, theta_)))
I get the following result
[-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718 -0.69314718
-0.69314718 -0.69314718 -0.69314718 -0.69314718]
Why is the format of the array different when I apply the log function?