public abstract class AbstractFactorizer extends Object implements Factorizer
Factorizers, provides ID to index mapping| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFactorizer(DataModel dataModel) |
| Modifier and Type | Method and Description |
|---|---|
protected Factorization |
createFactorization(double[][] userFeatures,
double[][] itemFeatures) |
protected Integer |
itemIndex(long itemID) |
void |
refresh(Collection<Refreshable> alreadyRefreshed)
Triggers "refresh" -- whatever that means -- of the implementation.
|
protected Integer |
userIndex(long userID) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfactorizeprotected AbstractFactorizer(DataModel dataModel) throws TasteException
TasteExceptionprotected Factorization createFactorization(double[][] userFeatures, double[][] itemFeatures)
protected Integer userIndex(long userID)
protected Integer itemIndex(long itemID)
public void refresh(Collection<Refreshable> alreadyRefreshed)
Refreshable
Triggers "refresh" -- whatever that means -- of the implementation. The general contract is that any
Refreshable should always leave itself in a consistent, operational state, and that the refresh
atomically updates internal state from old to new.
refresh in interface RefreshablealreadyRefreshed - Refreshables that are known to have already been
refreshed as a result of an initial call to a {#refresh(Collection)} method on some
object. This ensure that objects in a refresh dependency graph aren't refreshed twice
needlessly.Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.