You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by saral <sa...@gmail.com> on 2011/04/01 23:32:45 UTC
KDD Cup 11 - SVD based Recommender
Hello,
I have tried using Mahout (taste- non distributed version) to test
out-of-the-box performance on KDD cup, and for track 1 found an RMSE of
29.09,
which is certainly not bad (for out-of-the-box Item-based recommender,
PearsonCorrelationSim)
However, I would like to use the SVD-based recommender, for further
evaluation.
There are ALSWRFactorizer and ExpectationMaximizationSVDFactorizer
factorizers
available, but both require a large number of parameters and knobs to tune
(numIterations, numHiddenFeatures, lambda, preventOverfitting,randomNoise
etc. )
If anyone has worked with these recommenders before, could you please help
me
out, how to go about tuning these params, for my dataset. And wether it
would
even be a good idea to work with these recommenders for large datasets (650k
items, 1m users) I would expect SVD factorizations to help while dealing
with
sparse data, but am not familiar with the Taste implementations, whether
they
scale (memory, time required) for these large datasets.
Thanks for your help.
Regards,
SJ
--
View this message in context: http://lucene.472066.n3.nabble.com/KDD-Cup-11-SVD-based-Recommender-tp2765107p2765107.html
Sent from the Mahout User List mailing list archive at Nabble.com.
Re: KDD Cup 11 - SVD based Recommender
Posted by Tamas Jambor <ja...@gmail.com>.
Hi SJ,
I suggest that you could modify the standard datamodel provided by
mahout, and remove some of the stuff that is not needed. the kdd data
fits into around 6GB memory by default, but you could remove for
example the item indexing part (for the SVDs), and maybe store the
ratings in short. I guess that's how Sebastian got 2GB.
about the SVD, the one that is in mahout at the moment should run on
with around 15GB memory, but if you modify it slightly, removing the
cache, saving the model in float, etc. it could be done on less that
10GB. after some tweaking I managed to run some of the variations on
less than 6GB.
KNN based recommenders get really slow, especially the user based
where you need to compute a 1m*1m covariance matrix. I think the item
based is slightly better, but in my experience it doesn't really
produce good results with the KDD data.
Tamas
On Tue, Apr 5, 2011 at 5:39 AM, SJ <sa...@gmail.com> wrote:
> Hello Sebastian,
> Thanks for the info. Appreciate it.
>
> I played around a bit more with these two factorizes last few days and have
> figured out some values which I think should work.
> Also, I have server machines (24 cores, 64GB). Would that be sufficient to run
> ExpectationMaximizationSVDFactorizer according to your knowledge?
>
> I have tried running these 2 recommenders and also KNN based recommender (with a
> neighborhood of 35, don't ask why). But its really dreadfully slow, even a
> parallel implementation with 24 threads.
>
> any clues?
>
> Thanks,
> SJ
>
>
Re: KDD Cup 11 - SVD based Recommender
Posted by SJ <sa...@gmail.com>.
Hello Sebastian,
Thanks for the info. Appreciate it.
I played around a bit more with these two factorizes last few days and have
figured out some values which I think should work.
Also, I have server machines (24 cores, 64GB). Would that be sufficient to run
ExpectationMaximizationSVDFactorizer according to your knowledge?
I have tried running these 2 recommenders and also KNN based recommender (with a
neighborhood of 35, don't ask why). But its really dreadfully slow, even a
parallel implementation with 24 threads.
any clues?
Thanks,
SJ
Re: KDD Cup 11 - SVD based Recommender
Posted by Sebastian Schelter <ss...@apache.org>.
Hi,
I can't really help you with finding good parameters for applying the
factorizations to the KDD data, I can however point you to resources
that might help.
Check Simon Funk's famous text at
http://sifter.org/~simon/journal/20061211.html
<http://sifter.org/%7Esimon/journal/20061211.html> which
ExpectationMaximizationSVDFactorizer is based on and the paper
"Large-scale Parallel Collaborative Filtering for the Netflix Prize" at
http://www.hpl.hp.com/personal/Robert_Schreiber/papers/2008%20AAIM%20Netflix/netflix_aaim08(submitted).pdf
which is the basis for ALSWRFactorizer.
ALSWRFactorizer is very new and still somewhat experimental, some
experiments with the Netflix data and it's distributed version have
shown that it's performance is not that great because of the mismatch
between the map/reduce model and the iterative nature of this algorithm.
It would nevertheless be very interesting to see it being applied to the
KDD data. I do unfortunately not have the time or infrastructure to do
that experimenting myself.
ExpectationMaximizationSVDFactorizer does in its current form not scale
very well because it needs to copy the dataset into a
List<SVDPreference> which requires huge amounts of RAM, I guess for the
KDD data it would be more that you would find on a standard Desktop PC.
I created a DataModel implementation that can load the KDD Data in less
than 2 GB of memory recently (I used primitive arrays and implemented
only a couple methods however...) and tried to change
ExpectationMaximizationSVDFactorizer so that it doesn't need to cache
all the preferences, but I ran into numerical instabilities or some bug
I couldn't find and don't have any more time to invest in that
currently... I could send you the code in private if you wanna play with
it though :)
--sebastian
On 01.04.2011 23:32, saral wrote:
> Hello,
> I have tried using Mahout (taste- non distributed version) to test
> out-of-the-box performance on KDD cup, and for track 1 found an RMSE of
> 29.09,
> which is certainly not bad (for out-of-the-box Item-based recommender,
> PearsonCorrelationSim)
>
> However, I would like to use the SVD-based recommender, for further
> evaluation.
> There are ALSWRFactorizer and ExpectationMaximizationSVDFactorizer
> factorizers
> available, but both require a large number of parameters and knobs to tune
> (numIterations, numHiddenFeatures, lambda, preventOverfitting,randomNoise
> etc. )
>
> If anyone has worked with these recommenders before, could you please help
> me
> out, how to go about tuning these params, for my dataset. And wether it
> would
> even be a good idea to work with these recommenders for large datasets (650k
> items, 1m users) I would expect SVD factorizations to help while dealing
> with
> sparse data, but am not familiar with the Taste implementations, whether
> they
> scale (memory, time required) for these large datasets.
>
> Thanks for your help.
>
> Regards,
> SJ
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/KDD-Cup-11-SVD-based-Recommender-tp2765107p2765107.html
> Sent from the Mahout User List mailing list archive at Nabble.com.