Occasionally, one can see the following expression called cost function:
$$J(\theta)=\sum_{i=1}^{m}y^{i}\log(h_\theta(x^{i}))+(1-y^{i})\log(1-h_\theta(x^{i}))$$.
It looks to be me like maximum likelihood expression. I think it is incorrect to refer to maximum likelihood express as a cost function. They are different. Am I right?
Update In my view cost function is squared deviation or something similar $$\sum_i (x_i - y_i)^2$$
Here are a couple of links regarding maximum likelihood called cost function: Cost1 Cost2