List of usage examples for org.apache.mahout.cf.taste.impl.neighborhood NearestNUserNeighborhood NearestNUserNeighborhood
public NearestNUserNeighborhood(int n, double minSimilarity, UserSimilarity userSimilarity, DataModel dataModel) throws TasteException
From source file:edu.uci.ics.sourcerer.ml.SimilarUserCalculator.java
License:Open Source License
public void loadNeighborhood() throws TasteException { if (!loaded)//from www .ja v a2 s. co m this.neighborhood = new NearestNUserNeighborhood(this.neighborhoodSize, this.similarityThreshold, this.userSimilarity, this.model); loaded = true; }