Skip to content

Solving little errors while reading the book #59

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

Merged
merged 3 commits into from
Jul 30, 2017

Conversation

AlexanderKunkel
Copy link
Contributor

This is a fix of little errors and warnings i had with Python 3.6.2 and NumPy 1.13.1

Fixed the error

lr = LogisticRegression(C=10**c, random_state=0)
ValueError: Integers to negative integer powers are not allowed.

in line 211. set the range variables to floating point type.
Fixed the error

lr = LogisticRegression(C=10**c, random_state=0)
ValueError: Integers to negative integer powers are not allowed.

in line 242. set the range variables to floating point type.
Fixed deprecation warning in uses statement (LDA)
@pep8speaks
Copy link

Hello @AlexanderKunkel! Thanks for submitting the PR.

Line 111:1: E305 expected 2 blank lines after class or function definition, found 1
Line 133:1: E305 expected 2 blank lines after class or function definition, found 1
Line 164:1: E305 expected 2 blank lines after class or function definition, found 1
Line 334:1: E305 expected 2 blank lines after class or function definition, found 1

Line 178:1: E305 expected 2 blank lines after class or function definition, found 1
Line 600:1: E305 expected 2 blank lines after class or function definition, found 1

@rasbt
Copy link
Owner

rasbt commented Jul 30, 2017

Thanks a lot! While I've updated all the Jupyter Notebooks, I totally forgot about the scripts versions!

@rasbt rasbt merged commit f8e60ad into rasbt:master Jul 30, 2017
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

Successfully merging this pull request may close these issues.

3 participants