FAQ Database Discussion Community


java.lang.OutOfMemoryError: Java heap space in Eclipse, regardless of the settings

java,eclipse,mahout
I am testing a simple recommender system built using Mahout in Eclipse. If the preferences file is too big I am getting this error: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.lang.String.substring(String.java:1939) at java.lang.String.subSequence(String.java:1972) at com.google.common.base.Splitter$SplittingIterator.computeNext(Splitter.java:612) at com.google.common.base.Splitter$SplittingIterator.computeNext(Splitter.java:522) at...

Software requirement for Recommendation System

hadoop,system,mahout,recommendation-engine
In our final year engineering project, we're developing a recommendation system(Web application). The core of our project is CommTrust algorithm. User gives feedback to a particular product. Commtrust algorithm considers user feedback as multidimensional, processes user feedback and provides best recommendation to users. I'm really confused about software requirements. We're...

Recommendations based on product view history using Mahout

apache,mahout
I am working on an E-Commerce website. I want to create a recommender based on user's product view history using Apache Mahout. Right now, I am able to generate recommendations based on rating data that user provides. Right now, the input to the recommender is user_id, item_id and ratings. I...

Apache Mahout: How to perform n-fold cross validation? If not, please advise another Java framework

java,validation,mahout,recommendation-engine
Does Apache Mahout provide a way to perform n-fold cross-validation, instead of the random hold-out test? If not, what other Java framework do you suggest (with available code samples / good documentation, and that you have personally used if possible)? My current code (uses random hold-out): RecommenderEvaluator evaluator = new...

Apache Mahout with Ruby on Rails architecture

ruby-on-rails,postgresql,jruby,mahout,jrubyonrails
I'm trying to build a recommendation engine using rails with apache mahout, but I'm having trouble figuring out my starting point. I have a simple rails 4.2.1 app with a postgres database which uses Active Record, hosted on heroku. Reading up on Mahout, it seems that I can use the...

Mahout clustering: How to retrieve the name of a named vector

cluster-analysis,mahout
I want to cluster multiple documents using Mahout. The clustering works fine but I have no idea how to find out which documents are located in each cluster. I read that you can use the option --namedVector when creating the sparse-files but where does it take the ID from and...

Run Java program inside PHP code [duplicate]

java,php,maven,mahout
This question already has an answer here: How to run java code (.class) using php and display on the same web page 2 answers I am trying to make a simple recommender system, and I found that with mahout it is pretty easy to make one. I have the...

Database suported by apache mahout

sql,database,nosql,mahout
I want to use apache mahout in my application to implement my recommendation engine. but I do not know what are the database types supported by Apache Mahout? NoSQL database like Cassandra, MongoDB, CouchDB and SQL database such as MySQL, Oracle and Access are they supported by apache mahout?...

When running mahout spark-itemsimilarity is giving error?

apache-spark,mahout,mahout-recommender
I get the following Stack-Trace error when i run ./mahout spark-itemsimilarity --input input-file --output /output_dir --master spark://url_to_master --filter1 purchase --filter2 view --itemIDColumn 2 --rowIDColumn 0 --filterColumn 1 in linux terminal. I cloned the project from github Mahout branch spark-1.2 and did mvn install in mahout source code directory. and...

Apache Mahout Maven Build Failure MRLegacy

apache,maven,hadoop,mahout
Facing this error while configuring Apache Mahout. I am using the following: Java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) Maven Version: Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 19:21:28+0530) Java version: 1.8.0_31, vendor: Oracle Corporation Java home: /usr/java/jdk1.8.0_31/jre Default locale: en_US,...

ClusterDump in Mahout 0.9

hadoop,mahout
I have a question related to cluster dump in Mahout 0.9 while doing text clustering - https://mahout.apache.org/users/clustering/clusteringyourdata.html One case of cluster dump is to output the top k kerms and for that you don’t specify the parameter p (pointsDir). Second case of cluster dump is where you specify the parameter...

How to use mahout for association rule mining(i.e. Market Basket Annalysis)?

mahout
I want to implement an item recommender from frequent items patterns. I want to perform it using Apache Mahout (on Distribted Environment). Is there any algorithm in Mahout which can help to generate patterns?