Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added img/quickstart-example/points_centers_path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions quickstart/example.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ KMeansDataGenerator <numberOfDataPoints> <numberOfClusterCenters> [<relative std
{% endhighlight %}
The <i>relative standard deviation</i> is an interesting tuning parameter: it determines the closeness of the points to the centers.
<p>The <code>kmeans/</code> directory should now contain two files: <code>centers</code> and <code>points</code>.</p>
<p>If not then you could simply copy the two files using the path provided after running the java command.</p>
<a data-lightbox="inputfiles" href="{{site.baseurl}}/img/quickstart-example/points_centers_path.png" data-lightbox="input"><img class="img-responsive" src="{{site.baseurl}}/img/quickstart-example/points_centers_path.png" /></a>


<h2>Review Input Data</h2>
Expand All @@ -50,6 +52,8 @@ python2.7 plotPoints.py points points input

Note: You might have to install <a href="http://matplotlib.org/">matplotlib</a> (<code>python-matplotlib</code> package on Ubuntu) to use the Python script.

In some cases even after having installed Matplotlib, you might still be promped with an ImportError <code>No module named matplotlib.pyplot</code>. Very often this is due to having many python versions existing independently on your system. (for instance, you might have installed python more than once each time using a different approach). A suggested solution would be to completely re-install Python. (that way the system would now have one clear location to access.) You may then proceed by installing the scientific Python environment: <i>numpy</i> (preferably first), <i>scipy</i> and <i>matplotlib</i>.


The following overview presents the impact of the different standard deviations on the input data.
<div class="row" style="padding-top:15px">
Expand Down