Artificial Intelligence, Artificial Neural Network, Computer Science, Linear Regression, Python.
to return higher values for small inputs and lower values for high inputs. Since Y is binary whenever the probably for label 1 is below 0.5 in the hypothesis the log function will return a high loss which will be multiplied by 1 and added to the final loss. The second part of the formula will get