Package org.grouplens.lenskit.scored

Examples of org.grouplens.lenskit.scored.ScoredId


                nbrIter = nbrIter.limit(neighborhoodSize);
            }
            List<ScoredId> neighbors = nbrIter.toList();

            // compute score & place in vector
            ScoredId score = null;

            if (neighbors.size() >= minNeighbors) {
                score = scorer.score(item, neighbors, userData);
            }

            if (score != null) {
                scores.set(e, score.getScore());
                // FIXME Scorers should not need to do this.
                for (TypedSymbol sym: score.getChannelSymbols()) {
                    scores.getOrAddChannel(sym).put(e.getKey(), score.getChannelValue(sym));
                }
            }

            sizeChannel.set(e, neighbors.size());
        }
View Full Code Here

TOP

Related Classes of org.grouplens.lenskit.scored.ScoredId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.