Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization parameters #1

Open
2 tasks
JWarmenhoven opened this issue Dec 23, 2015 · 3 comments
Open
2 tasks

Optimization parameters #1

JWarmenhoven opened this issue Dec 23, 2015 · 3 comments

Comments

@JWarmenhoven
Copy link
Owner

  • Method
  • Gradient function
@soumenms2015
Copy link

Hello Why does the computeCost function result 0.0 instead of 32.0....?

@JWarmenhoven
Copy link
Owner Author

Can you please give some context in your question?
I assume your question is about function computeCost(X, y, theta=[[0],[0]]) from the first exercise. I just reran the function and I get 32.07 as a cost when using the initial theta values (both zero).

Did you load the data correctly?

@soumenms2015
Copy link

I have figured out the problem. Although I had intuition that the problem was not with the code before posting this question. The problem was with the Ipython version. When I run this same code with Ipython3 then I am able to get the right output. Thank you very much for your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants