Wilkie's theorem: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
 
en>Dolovis
clean-up
Line 1: Line 1:
In [[data mining]], '''''k''-means++'''<ref>{{Cite conference
Hyundai Genesis- this will really reach the US scene, because this type of Hyundai is fashionable along with high quality. Its fantastic fashion will take you an extended way.<br><br>Don't forget to pivot properly. From a somewhat closed posture, consider the team back on the inside swing plane. The somewhat closed posture will help you pivot properly.<br><br>Installing a garage floor will not need to be rough, or hard. It is actually relatively simple. The first step you have to make when installing a garage floor is [http://abcnews.go.com/ picking] what type of floor to payIn the event you loved this post and you would want to receive more information relating to [http://opisy-gg.info.pl www.opisy-gg.info.pl] i implore you to visit the web site. There are several options. Below we are going to assess these choices. No one choice is better then the others, unless you have a specific thought or theme already in mind for your garage.<br><br>Pick a pillowcase. The routine can be a cutsy cartoon, a quite flowery, amazing geometrics or a cozy flannel amount. Pillowcases are available in thrift stores, any department store or your own cupboard.<br><br>Midsize family sedans- this is among the best-selling family car produced by Hyundai. If you are on the look to find the best deal and affordability, you are able to select this type of automobile.<br><br>Maybe you have wondered why some of the topic lines are more appealing than others when they talk of how many or how much the reader will be getting if he opens the mail?<br><br>You need to get your heart-pumping and you need to sweat a little if you want to remove the fat. Walking for 15-20 minutes just isn't going to cut it anymore. If you want to eliminate the cellulite on your thighs, then you have to do cardiovascular exercise for 30-60 minutes daily, 5 days per week.<br><br>The following step in healthy eating habits is consuming natural fruits and vegetables. These foods have more nutritional value via land that will not be depleted by erosion and mono-cropping. Synthetic pesticides and weed killers will not be used in the production of organic fruits and, and they do not allow the usage of the synthetic pesticides and herbicides that are used in conventional growing systems. Consider it - limiting the [http://Vnexpress.net/ consumption] of pesticides and plant foods is great for your insides!
| title=''k''-means++: the advantages of careful seeding
| url=http://ilpubs.stanford.edu:8090/778/1/2006-13.pdf
| author=Arthur, D. and Vassilvitskii, S.
| booktitle=Proceedings of the eighteenth annual ACM-SIAM symposium on Discrete algorithms
| pages=1027&ndash;1035
| year=2007
| publisher=Society for Industrial and Applied Mathematics Philadelphia, PA, USA
}}</ref><ref>http://theory.stanford.edu/~sergei/slides/BATS-Means.pdf Slides for presentation of method by Arthur, D. and Vassilvitskii, S.
</ref> is an algorithm for choosing the initial values (or "seeds") for the [[k-means clustering|''k''-means clustering]] algorithm. It was proposed in 2007 by David Arthur and Sergei Vassilvitskii, as an approximation algorithm for the [[NP-hard]] ''k''-means problem&mdash;a way of avoiding the sometimes poor clusterings found by the standard ''k''-means algorithm. It is similar to the first of three seeding methods proposed, in  independent work, in 2006<ref>{{Cite conference
| title=The Effectiveness of Lloyd-Type Methods for the k-Means Problem
| author=Ostrovsky, R., Rabani, Y., Schulman, L. J. and Swamy, C.
| booktitle=Proceedings of the 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS'06)
| pages=165&ndash;174
| year=2006
| organization=IEEE
}}</ref> by Rafail Ostrovsky, Yuval Rabani, Leonard Schulman and Chaitanya Swamy. (The distribution of the first seed is different.)
 
==Background==
The ''k''-means problem is to find cluster centers that minimize  the intra-class variance, i.e. the sum of squared distances from each data point being clustered to its cluster center (the center that is closest to it).
Although finding an exact solution to the ''k''-means problem for arbitrary input is NP-hard,<ref>{{cite journal
  | doi=10.1023/B:MACH.0000033113.59016.96
| title=Clustering Large Graphs via the Singular Value Decomposition
| author=Drineas, P. and Frieze, A. and Kannan, R. and Vempala, S. and Vinay, V.
| journal=Machine Learning
| volume=56
| issue=1–3
| pages=9&ndash;33
| year=2004
| publisher=Kluwer Academic Publishers Hingham, MA, USA
}}</ref> the standard approach to finding an approximate solution (often called [[Lloyd's algorithm]] or the ''k''-means algorithm) is used widely and frequently finds reasonable solutions quickly.
 
However, the ''k''-means algorithm has at least two major theoretic shortcomings:
* First, it has been shown that the worst case running time of the algorithm is super-polynomial in the input size.<ref>{{Cite
| title=How slow is the ''k''-means method?
| author=Arthur, D. and Vassilvitskii, S.
| booktitle=Proceedings of the twenty-second annual symposium on Computational geometry
| pages=144&ndash;153
| year=2006
| organization=ACM New York, NY, USA
}}</ref>
* Second, the approximation found can be arbitrarily bad with respect to the objective function compared to the optimal clustering.
 
The ''k''-means++ algorithm addresses the second of these obstacles by specifying a procedure to initialize the cluster centers before proceeding with the standard ''k''-means optimization iterations.
With the ''k''-means++ initialization, the algorithm is guaranteed to find a solution that is O(log&nbsp;''k'') competitive to the optimal ''k''-means solution.
 
==Example bad case==
To illustrate the potential of the ''k''-means algorithm to perform arbitrarily poorly with respect to the objective function of minimizing the sum of squared distances of cluster points to the centroid of their assigned clusters, consider the example of four points in '''R'''<sup>2</sup> that form an axis-aligned rectangle whose width is greater than its height.
 
If ''k''&nbsp;=&nbsp;2 and the two initial cluster centers lie at the midpoints of the top and bottom line segments of the rectangle formed by the four data points, the ''k''-means algorithm converges immediately, without moving these cluster centers. Consequently, the two bottom data points are clustered together and the two data points forming the top of the rectangle are clustered together&mdash;a suboptimal clustering because the width of the rectangle is greater than its height.
 
Now, consider stretching the rectangle horizontally to an arbitrary width. The standard ''k''-means algorithm will continue to cluster the points suboptimally, and by increasing the horizontal distance between the two data points in each cluster, we can make the algorithm perform arbitrarily poorly with respect to the ''k''-means objective function.
 
==Initialization algorithm==
The intuition that spreading out the ''k'' initial cluster centers is a good thing is behind this approach: the first cluster center is chosen uniformly at random from the data points that are being clustered, after which each subsequent cluster center is chosen from the remaining data points with probability proportional to its squared distance from the point's closest existing cluster center.
 
The exact algorithm is as follows:
# Choose one center uniformly at random from among the data points.
# For each data point {{math|<var>x</var>}}, compute D({{math|<var>x</var>}}), the distance between {{math|<var>x</var>}} and the nearest center that has already been chosen.
# Choose one new data point at random as a new center, using a weighted probability distribution where a point {{math|<var>x</var>}} is chosen with probability proportional to D({{math|<var>x</var>}})<sup>2</sup>.
# Repeat Steps 2 and 3 until {{math|<var>k</var>}} centers have been chosen.
# Now that the initial centers have been chosen, proceed using standard [[k-means clustering|''k''-means clustering]].
 
This seeding method yields considerable improvement in the final error of {{math|<var>k</var>}}-means. Although the initial selection in the algorithm takes extra time, the {{math|<var>k</var>}}-means part itself converges very quickly after this seeding and thus the algorithm actually lowers the computation time. The authors tested their method with real and synthetic datasets and obtained typically 2-fold improvements in speed, and for certain datasets, close to 1000-fold improvements in error. In these simulations the new method almost always performed at least as well as [[Vanilla (computing)|vanilla]] {{math|<var>k</var>}}-means in both speed and error.
 
Additionally, the authors calculate an approximation ratio for their algorithm. The {{math|<var>k</var>}}-means++ algorithm guarantees an approximation ratio O(log&nbsp;''k'') in expectation (over the randomness of the algorithm), where <math>k</math> is the number of clusters used. This is in contrast to vanilla {{math|<var>k</var>}}-means, which can generate clusterings arbitrarily worse than the optimum.<ref name=kanungo>T. Kanungo, D. Mount, N. Netanyahux, C. Piatko, R. Silverman, A. Wu [http://www.cs.umd.edu/~mount/Papers/kmlocal.pdf "A Local Search Approximation Algorithm for ''k''-Means Clustering"] 2004 Computational Geometry: Theory and Applications.</ref>
 
==Applications==
The ''k''-means++ approach has been applied since its initial proposal. In a review by Shindler,<ref>http://web.archive.org/web/20110927100642/http://www.cs.ucla.edu/~shindler/shindler-kMedian-survey.pdf Approximation Algorithms for the Metric ''k''-Median
Problem</ref> which includes many types of clustering algorithms, the method is said to successfully overcome some of the problems associated with other ways of defining initial cluster-centres for ''k''-means clustering. Lee et al.<ref>http://sir-lab.usc.edu/publications/2008-ICWSM2LEES.pdf Discovering Relationships among Tags and Geotags, 2007</ref> report an application of ''k''-means++ to create geographical cluster of photographs based on the latitude and longitude information attached to the photos. An application to financial diversification is reported by Howard and Johansen.<ref>http://www.cse.ohio-state.edu/~johansek/clustering.pdf Clustering Techniques for Financial Diversification, March 2009</ref> Other support for the method and ongoing discussion is also available online.<ref>http://lingpipe-blog.com/2009/03/23/arthur-vassilvitskii-2007-kmeans-the-advantages-of-careful-seeding/ Lingpipe Blog</ref>
Since the k-means++ initialization needs k passes over the data, it does not scale very well to large data sets. Bahman Bahmani et al. have proposed a scalable variant of k-means++ called k-means|| which provides the same theoretical guarantees and yet is highly scalable. <ref name=kmeans||>B. Bahmani, B. Moseley, A. Vattani, R. Kumar, S. Vassilvitskii [http://vldb.org/pvldb/vol5/p622_bahmanbahmani_vldb2012.pdf "Scalable K-means++"] 2012 Proceedings of the VLDB Endowment.</ref>
 
== Software ==
{{Wikibooks|K-Means++}}
* [[ELKI]] data-mining framework contains multiple k-means variations, including k-means++ for seeding.
* [[GNU R]] includes k-means, and the "flexclust" package can do k-means++
* [[OpenCV]] [http://docs.opencv.org/modules/core/doc/clustering.html#kmeans implementation]
* [[Weka (machine learning)|Weka]] contains k-means (with optional k-means++) and x-means clustering.
* [http://www.stanford.edu/~darthur/kmpp.zip David Arthur's implementation] {{dead link|date=May 2013}}
* [http://commons.apache.org/math/api-2.1/index.html?org/apache/commons/math/stat/clustering/KMeansPlusPlusClusterer.html Apache Commons Math Java implementation]
* [http://docs.graphlab.org/clustering.html CMU's GraphLab] Efficient, open source clustering on multicore.
 
==References==
{{Reflist}}
 
[[Category:Data clustering algorithms]]
[[Category:Statistical algorithms]]

Revision as of 00:14, 11 February 2014

Hyundai Genesis- this will really reach the US scene, because this type of Hyundai is fashionable along with high quality. Its fantastic fashion will take you an extended way.

Don't forget to pivot properly. From a somewhat closed posture, consider the team back on the inside swing plane. The somewhat closed posture will help you pivot properly.

Installing a garage floor will not need to be rough, or hard. It is actually relatively simple. The first step you have to make when installing a garage floor is picking what type of floor to pay. In the event you loved this post and you would want to receive more information relating to www.opisy-gg.info.pl i implore you to visit the web site. There are several options. Below we are going to assess these choices. No one choice is better then the others, unless you have a specific thought or theme already in mind for your garage.

Pick a pillowcase. The routine can be a cutsy cartoon, a quite flowery, amazing geometrics or a cozy flannel amount. Pillowcases are available in thrift stores, any department store or your own cupboard.

Midsize family sedans- this is among the best-selling family car produced by Hyundai. If you are on the look to find the best deal and affordability, you are able to select this type of automobile.

Maybe you have wondered why some of the topic lines are more appealing than others when they talk of how many or how much the reader will be getting if he opens the mail?

You need to get your heart-pumping and you need to sweat a little if you want to remove the fat. Walking for 15-20 minutes just isn't going to cut it anymore. If you want to eliminate the cellulite on your thighs, then you have to do cardiovascular exercise for 30-60 minutes daily, 5 days per week.

The following step in healthy eating habits is consuming natural fruits and vegetables. These foods have more nutritional value via land that will not be depleted by erosion and mono-cropping. Synthetic pesticides and weed killers will not be used in the production of organic fruits and, and they do not allow the usage of the synthetic pesticides and herbicides that are used in conventional growing systems. Consider it - limiting the consumption of pesticides and plant foods is great for your insides!