Kmeans algorithm test for Apache mahout

Source: Internet
Author: User

Mahout is a data mining package in Hadoop, although it is now generally used with spark mlib, but in order to make comparisons, think of the mahout algorithm to verify the test.


Mahout installation is very simple, just need to decompress and then the following configuration can be.

# Mahout
Export mahout_home=/home/ndscbigdata/soft/mahout-0.11.0
Export path= $MAHOUT _home/bin: $PATH
Export classpath= $CLASSPATH: $MAHOUT _home/lib


Because the algorithm has a lot of blogs or books are introduced, so it is not repeated here.

Among them, the Kmeans algorithm test adopts the popular "Syntheticcontrol" data set of the Internet to realize. The mahout provides three algorithms for this data set, as follows:



The result of the Kmeans test is as shown in the figure.



The results are analyzed and compared, and it is found that the efficiency of data mining based on Hadoop is very low, and it will store the intermediate clustering results in disk every time.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.