Skip to content

Instantly share code, notes, and snippets.

@Oindrila-Sen
Last active February 7, 2018 21:06
theta = c(0,0)
X = pop$V1
y = pop$V2
X = cbind(1,X)
m = length(y)
# call the ComputeCost()
cost <- ComputeCost(X,y,m,theta)
cost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment