hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hama Wiki] Update of "OnlineCF" by IkhtiyorAhmedov
Date Thu, 12 Sep 2013 04:10:25 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hama Wiki" for change notification.

The "OnlineCF" page has been changed by IkhtiyorAhmedov:
https://wiki.apache.org/hama/OnlineCF?action=diff&rev1=1&rev2=2

  recommender.setInputPreferences(convertedOutputPath); 
  recommender.setIteration(150); 
  recommender.setMatrixRank(3); 
- recommender.setSkipCount(1); // after how many steps we should synchronize values in each
task recommender.setUpdateFunction(MeanAbsError.class); recommender.setOutputPath(outputFileName);

+ recommender.setSkipCount(1); // after how many steps we should synchronize values in each
task 
+ recommender.setUpdateFunction(MeanAbsError.class); 
+ recommender.setOutputPath(outputFileName); 
  recommender.train();
  }}}
  
@@ -56, +58 @@

  '''Predict.'''
  
  {{{
+ // estimate score 
- // estimate score double estimatedScore = recommender.estimatePreference(userId, itemId);
+ double estimatedScore = recommender.estimatePreference(userId, itemId);
  
- // estimate user similarities 
+ // estimate user similarities
  double userSimilarity = recommender.calculateUserSimilarity(user1, user2); 
  // Pair<K, V> - where K predicted similar user, V predicted similarity score 
  List<Pair<Long, Double>> similarUsers = recommender.getMostSimilarUsers(userId,
count);

Mime
View raw message