Yes, you can call setPreference() on FileDataModel or GenericDataModel
now. These methods have caveats -- the change is lost in FileDataModel
once a file reloads. The operation is a little slow, and most
importantly not really thread-safe, so you should synchronize.

Calling refresh() from the Recommender updates everything -- data
model, and, the recommender to use the new data. It will be slow for
slope one so do it infrequently.

Pass 'null' as an argument.

On Wed, Apr 22, 2009 at 3:02 AM, Matthew Roberson <[email protected]> wrote:
> So, with the added change, I can add new preferences for a user directly to
> the GenericDataModel using setPreference() and then update the Recommender
> periodically.
>
> Would this be done by refreshing the recommender via a call to refresh()
> (within the Recommender class)?
>
> If this is the case, I am not clear as to what is passed to the refresh()
> method, i.e. "Collection<Refreshable>"?
>
> -- Matt
>

Reply via email to