I'm working on linear regression algorithm with multiple variables using Numpy library for Matrix. My problem is that matrix.item((i,j)) is not working properly.here is python shell:
>>> a=h(Data,0,Theta)
>>> a
matrix([[3.78]])
>>> a.item((0,0))
3.7800000000000002
As you see the output value is 0.0000000000000002 bigger than the real answer.