There's no magic here, it's just suggesting you create a bunch of those ItemItemSimilarity objects, one for each item-item similarity that you know about.
Collection<GenericItemSimilarity.ItemItemSimilarity> correlations = new ArrayList<GenericItemSimilarity.ItemItemSimilarity>(); correlations.add(new GenericItemSimilarity.ItemItemSimilarity(1, 2, 0.5)); ... On Sun, Nov 27, 2011 at 11:42 AM, bish maten <[email protected]> wrote: > https://cwiki.apache.org/MAHOUT/recommender-documentation.html has > following example > > // Construct the list of pre-computed correlations > Collection <GenericItemSimilarity.ItemItemSimilarity> correlations = ...; > > how is actual construction done in above line ( correlations = ... ; ) >
