Skip to content

Fix spacing and formatting inconsistencies #13747

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 4 commits into from
May 1, 2019

Conversation

Scowley4
Copy link
Contributor

@Scowley4 Scowley4 commented Apr 29, 2019

Fixes spacing/formatting inconsistencies in code. Examples of changes shown below.

Examples

Endline comments

from scipy.cluster import hierarchy     # imports PIL

to

from scipy.cluster import hierarchy  # imports PIL

Extra spaces in text

feature matrix  representing n_samples samples to be clustered

to

feature matrix representing n_samples samples to be clustered

Line up arguments

kmeans = MiniBatchKMeans(n_clusters=2,
        random_state=0,

to

kmeans = MiniBatchKMeans(n_clusters=2,
                         random_state=0,

Add 0s for readability

true_cov = np.array([[.8, 0., .2, 0.]
                     [0., .4, 0., 0.],

to

true_cov = np.array([[0.8, 0.0, 0.2, 0.0],
                     [0.0, 0.4, 0.0, 0.0],

Copy link
Contributor

@XavierSATTLER XavierSATTLER left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are small changes, but it definitely looks better.

Copy link
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Scowley4

@jnothman jnothman merged commit e7ca623 into scikit-learn:master May 1, 2019
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request May 6, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
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