Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-354

make the output of RecommenderJob more readable

    Details

      Description

      now the output of RecommenderMapper as following:
      output.collect(userID, new RecommendedItemsWritable(recommendations));

      Can we change it more readable like following:

      private final Text user = new Text();
      private final Text recomScore = new Text();
      private static final String FIELD_SEPERATOR = ",";
      for (RecommendedItem recommendation : recommendations)

      { user.set(String.valueOf(userId)); recomScore.set(recommendation.getItemID() + FIELD_SEPERATOR + recommendation.getValue()); output.collect(user, recomScore); }

      then user can read and verify the result more convenient and need not depend on the mahout API

        Attachments

        1. screenshot-1.jpg
          322 kB
          Han Hui Wen

          Activity

            People

            • Assignee:
              srowen Sean Owen
              Reporter:
              huiwenhan Han Hui Wen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: