Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Small Changes #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Small Changes #1

wants to merge 4 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 15, 2016

  • at notebooks/fig_code/figures.py added plt.axis('equal') in plot_kmeans_interactive. The previous aspect ratio made it unclear why some points where assigned to a centroid.. it seemed like the nearest centroid was another one.

  • at notebooks/fig_code/sgd_separator.py changed clf.decision_function([x1, x2]) clf.decision_function(np.array([[x1, x2]])) to fix a Deprecation Warning

  • Notebook notebooks/04.2-Clustering-KMeans.ipynb Last example produces this warning with Python 3.5 Sklearn 0.17.1 (latest right now)

    DeprecationWarning: This function is deprecated. Please call randint(0, 273279 + 1) instead 0, n_samples - 1, init_size)

    so added a couple of lines to avoid it.

    Also added plt.axis('equal') to all kmeans plots to agree with the first change ( in plot_kmeans_interactive )

imadie and others added 4 commits April 15, 2016 09:15
Since axes where not equal it was not clear why some points where assigned to certain centroid (visually, the nearest centroid is another one)
Set aspec ratio for aspect = 1
In the interactive plot it was not clear why some points where assigned to some centroid (visually). Changed to be clear
…me points are asigned to certain centroids) and a couple of lines to ignore a deprecation warning in last example (china)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants