Java – Use Apache Mahout to generate recommended data models

Use Apache Mahout to generate recommended data models… here is a solution to the problem.

Use Apache Mahout to generate recommended data models

I plan to generate recommendations for users of my web application. So I decided to use Apache Mahout for this. Most of the tutorials I’ve seen use FileDataModel (data is stored in csv files), but my data is in a database.

For web applications with approximately 500 to 1000 users, is it good enough to use FileDataModel to generate user recommendations? (I just transferred the required data from the database to my CSV file)? Or are there other options?

This is first and second I mentioned the tutorial.

Solution

You can use JDBCDataModel to access preference data from a database.

Look at MySQLJDBCDataModel

Related Problems and Solutions