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

Chris Newell commented on MAHOUT-667:
-------------------------------------

Initial suggestion for discussion below. It feels like re-inventing the wheel 
so if I've missed some obvious solution elsewhere please let me know.

{code}
/**
 * Provides a persistent store for a resource.
 */
public interface PersistenceStrategy {

  /**
   * @return an InputStream from which a resource can be read.
   * @throws IOException
   */
  public InputStream getInputStream() throws IOException;

  /**
   * @return an OutputStream to which a resource can be written.
   * @throws IOException
   */
  public OutputStream getOutputStream() throws IOException;
  
  /**
   * @return true if the persistent store contains a resource; false otherwise.
   */
  public boolean exists();

  /**
   * Clears the persistent store.
   * @return true if and only if the store is successfully cleared; false 
otherwise 
   */
  public boolean delete();

}
{code}

> Persistent storage of factorizations in SVDRecommender
> ------------------------------------------------------
>
>                 Key: MAHOUT-667
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-667
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Collaborative Filtering
>    Affects Versions: 0.5
>            Reporter: Chris Newell
>            Assignee: Sean Owen
>            Priority: Minor
>             Fix For: 0.4
>
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> As discussed previously (https://issues.apache.org/jira/browse/MAHOUT-640) it 
> would be beneficial to provide a persistent storage mechanism for 
> factorizations created by SVDRecommender (in package 
> org.apache.mahout.cf.taste.impl.recommender.svd) as these can be time 
> consuming to produce. It would also allow factorizations to be computed on 
> one machine then distributed to other machines providing predictions, 
> improving efficiency and scalability.
> Having a "persistence strategy" interface has been suggested that could be 
> implemented as required. I'll try to post a outline proposal for discussion 
> purposes in the next few days but any comments or suggestions would be very 
> welcome.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to