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

Example code in Ex3 has ) instead of , #3

Closed
tommyjcarpenter opened this issue May 22, 2018 · 1 comment
Closed

Example code in Ex3 has ) instead of , #3

tommyjcarpenter opened this issue May 22, 2018 · 1 comment

Comments

@tommyjcarpenter
Copy link

tommyjcarpenter commented May 22, 2018

This block:

res = optimize.minimize(lrCostFunction, 
                            initial_theta, 
                            (X, (y == c), lambda_), 
                            jac=True, 
                            method='TNC')  # <-
                            options=options)

Also, options should be written with a colon, e.g., options= {'maxiter': 50}

@alpenmilch411
Copy link

I second that. Took me a while of figuring it out

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

3 participants