[ 
https://issues.apache.org/jira/browse/MAHOUT-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468519#comment-13468519
 ] 

David Arthur commented on MAHOUT-202:
-------------------------------------

For full disclosure, here's the script I used to generate the above benchmark:

{code:java}
    long t1, t2;
    int total;
    log.info("Iterate through all users");
    LongPrimitiveIterator userIDs = model.getUserIDs();
    total = 0;
    t1 = System.currentTimeMillis();
    while(userIDs.hasNext()) {
      long user = userIDs.nextLong();
      PreferenceArray prefs = model.getPreferencesFromUser(user);
      total += prefs.length();
    }
    t2 = System.currentTimeMillis();
    log.info("Iterated through all users in: {} ms", (t2-t1));
    log.info("Counted {} ratings", total);
    log.info("Total number of users: " + model.getNumUsers());

    log.info("Iterate through all items");
    LongPrimitiveIterator itemIDs = model.getItemIDs();
    total = 0;
    t1 = System.currentTimeMillis();
    while(itemIDs.hasNext()) {
      long item = itemIDs.nextLong();
      PreferenceArray prefs = model.getPreferencesForItem(item);
      total += prefs.length();
    }
    t2 = System.currentTimeMillis();
    log.info("Iterated through all items in: {} ms", (t2-t1));
    log.info("Counted {} ratings", total);
    log.info("Total number of items: " + model.getNumItems());
{code}
                
> Make Taste support HBase as data store
> --------------------------------------
>
>                 Key: MAHOUT-202
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-202
>             Project: Mahout
>          Issue Type: New Feature
>          Components: Collaborative Filtering
>    Affects Versions: 0.3
>            Reporter: Jeff Zhang
>            Priority: Minor
>         Attachments: MAHOUT-202.patch
>
>
> I'd like to add hbase as another data store option for taste.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to