Mahout Mahout-based itembased algorithm for getting Started Guide

Source: Internet
Author: User

The itembased algorithm based on Mahout

In fact, Mahout distributed only partially implemented the algorithm. For example, the recommendation algorithm item-based and Slopone have Hadoop implementation and single-machine version implementation, user-based no distributed implementation.

Mahout implemented algorithms (standalone and distributed editions)

Https://mahout.apache.org/users/basics/algorithms.html

In most cases, we just call the mahout algorithm, either standalone or distributed.

So how does Mahout's distributed algorithm call it?

In fact, there are two ways of mahout distributed algorithm invocation,

One is that the command line submits the Hadoop task,

One is a Java program that submits a Hadoop task.

1 command-line mode

./mahout Recommenditembased-ssimilarity_loglikelihood-i/home/linger/j2ee-workspace/linger/data/dataset.csv-o/ Home/linger/j2ee-workspace/linger/data/out.csv--numrecommendations 3

You can refer to the official documentation

Http://mahout.apache.org/users/recommender/intro-itembased-hadoop.html

2 Java program Call is actually the first copy of the data to HDFs, and then do the operation in Hadoop.

You can refer to this article

http://blog.fens.me/hadoop-mahout-mapreduce-itemcf/

Mahoutdevelopment of step-by-Steps programsItem-based collaborative filteringITEMCF

Ps:mahout has a hole, that is, the UID and Itemid must be long type.

You can refer to the following article to resolve

Mahout uid,pid for string type when recommended

http://blog.csdn.net/pan12jian/article/details/38703569

See here, you should think, for Mahout has implemented algorithm, call is very simple.

To be more near a floor, you must learn source code analysis and source modification, and finally learn to implement distributed algorithms based on Map-reduce.

Learn source code analysis and source modification, is to better use mahout, because sometimes need to according to their own specific needs to make adjustments, or even optimization.

Learn to implement distributed algorithms based on Map-reduce, because some algorithms mahout not implemented, so they have to develop their own.


This article link: http://blog.csdn.net/lingerlanlan/article/details/42087071

This article linger



Mahout Mahout-based itembased algorithm for getting Started Guide

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.