congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LenskitRecommenderEngineBuilder.buildRecommenderGraph
Code IndexAdd Tabnine to your IDE (free)

How to use
buildRecommenderGraph
method
in
org.lenskit.LenskitRecommenderEngineBuilder

Best Java code snippets using org.lenskit.LenskitRecommenderEngineBuilder.buildRecommenderGraph (Showing top 5 results out of 315)

origin: lenskit/lenskit

@Override
protected DAGNode<Component, Dependency> buildRecommenderGraph(DataAccessObject dao) {
  DAGNode<Component, Dependency> graph = super.buildRecommenderGraph(dao);
  if (mergePool != null) {
    logger.debug("deduplicating configuration graph");
    synchronized (mergePool) {
      graph = mergePool.merge(graph);
    }
  }
  return graph;
}
origin: lenskit/lenskit

/**
 * Build the recommender directly, skipping an engine.  This does not separate the recommender from
 * the DAO, it just directly builds it.
 *
 * @param dao The data access object to use.  Can be `null` to build without a DAO, but this is only useful in
 *            special cases.
 * @return The built recommender engine, with {@linkplain ModelDisposition#EXCLUDED excluded}
 *         components removed.
 * @throws RecommenderBuildException if there is an error building the engine.
 */
public LenskitRecommender buildRecommender(DataAccessObject dao) throws RecommenderBuildException {
  DAGNode<Component, Dependency> graph = buildRecommenderGraph(dao);
  graph = instantiateGraph(graph);
  return new LenskitRecommender(graph);
}
origin: lenskit/lenskit

/**
 * Build the recommender engine.
 *
 * @param dao The data access object to use.  Can be `null` to build without a DAO, but this is only useful in
 *            special cases.
 * @return The built recommender engine, with {@linkplain ModelDisposition#EXCLUDED excluded}
 *         components removed.
 * @throws RecommenderBuildException if there is an error building the engine.
 */
public LenskitRecommenderEngine build(DataAccessObject dao) throws RecommenderBuildException {
  DAGNode<Component, Dependency> graph = buildRecommenderGraph(dao);
  graph = instantiateGraph(graph);
  graph = rewriteExcludedComponents(graph, dao);
  boolean instantiable = GraphtUtils.getPlaceholderNodes(graph).isEmpty();
  return new LenskitRecommenderEngine(graph, instantiable);
}
origin: org.lenskit/lenskit-core

/**
 * Build the recommender directly, skipping an engine.  This does not separate the recommender from
 * the DAO, it just directly builds it.
 *
 * @param dao The data access object to use.  Can be `null` to build without a DAO, but this is only useful in
 *            special cases.
 * @return The built recommender engine, with {@linkplain ModelDisposition#EXCLUDED excluded}
 *         components removed.
 * @throws RecommenderBuildException if there is an error building the engine.
 */
public LenskitRecommender buildRecommender(DataAccessObject dao) throws RecommenderBuildException {
  DAGNode<Component, Dependency> graph = buildRecommenderGraph(dao);
  graph = instantiateGraph(graph);
  return new LenskitRecommender(graph);
}
origin: org.lenskit/lenskit-core

/**
 * Build the recommender engine.
 *
 * @param dao The data access object to use.  Can be `null` to build without a DAO, but this is only useful in
 *            special cases.
 * @return The built recommender engine, with {@linkplain ModelDisposition#EXCLUDED excluded}
 *         components removed.
 * @throws RecommenderBuildException if there is an error building the engine.
 */
public LenskitRecommenderEngine build(DataAccessObject dao) throws RecommenderBuildException {
  DAGNode<Component, Dependency> graph = buildRecommenderGraph(dao);
  graph = instantiateGraph(graph);
  graph = rewriteExcludedComponents(graph, dao);
  boolean instantiable = GraphtUtils.getPlaceholderNodes(graph).isEmpty();
  return new LenskitRecommenderEngine(graph, instantiable);
}
org.lenskitLenskitRecommenderEngineBuilderbuildRecommenderGraph

Javadoc

Build a recommender graph for this engine builder's configuration. Clients generally do not need to use this; it is exposed for the evaluator.

Popular methods of LenskitRecommenderEngineBuilder

  • addConfiguration
    Add a configuration to be used when building the engine.
  • build
    Build the recommender engine.
  • instantiateGraph
    Instantiate the recommender graph.
  • <init>
  • rewriteExcludedComponents
    Remove configuration that should be excluded from engine graphs, particularly the DAO.

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • JLabel (javax.swing)
  • JOptionPane (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now