List of usage examples for org.apache.mahout.cf.taste.impl.recommender.svd Factorization Factorization
public Factorization(FastByIDMap<Integer> userIDMapping, FastByIDMap<Integer> itemIDMapping, double[][] userFeatures, double[][] itemFeatures)
From source file:com.recsys.factorizer.CustomAbstractFactorizer.java
License:Apache License
protected Factorization createFactorization(double[][] userFeatures, double[][] itemFeatures) { return new Factorization(userIDMapping, itemIDMapping, userFeatures, itemFeatures); }
From source file:com.recsys.factorizer.CustomAbstractFactorizer.java
License:Apache License
protected Factorization createUpdatedFactorization(double[][] userFeatures, double[][] itemFeatures, long newItem) { itemIDMapping.put(newItem, itemIDMapping.size()); return new Factorization(userIDMapping, itemIDMapping, userFeatures, itemFeatures); }
From source file:org.plista.kornakapi.core.config.RecommenderConfig.java
License:Apache License
protected void createEmptyFactorization(PersistenceStrategy strategy) throws IOException { strategy.maybePersist(new Factorization(new FastByIDMap<Integer>(0), new FastByIDMap<Integer>(0), new double[0][0], new double[0][0])); }
From source file:org.plista.kornakapi.web.servlets.BaseServlet.java
License:Apache License
private void createEmptyFactorization(PersistenceStrategy strategy) throws IOException { strategy.maybePersist(new Factorization(new FastByIDMap<Integer>(0), new FastByIDMap<Integer>(0), new double[0][0], new double[0][0])); }