Tabnine Logo
LenskitRecommenderEngine.getGraph
Code IndexAdd Tabnine to your IDE (free)

How to use
getGraph
method
in
org.lenskit.LenskitRecommenderEngine

Best Java code snippets using org.lenskit.LenskitRecommenderEngine.getGraph (Showing top 1 results out of 315)

origin: lenskit/lenskit

/**
 * Load a configuration graph from a recommender model.
 * @param file The model file.
 * @return The recommender graph.
 * @throws IOException if there is an error loading the model.
 * @throws RecommenderConfigurationException if the model fails to configure.
 */
private DAGNode<Component, Dependency> loadModel(Context ctx, File file) throws IOException, RecommenderConfigurationException {
  logger.info("loading model from {}", file);
  LenskitRecommenderEngineLoader loader = LenskitRecommenderEngine.newLoader();
  loader.setValidationMode(EngineValidationMode.DEFERRED)
     .addConfiguration(makeDataConfig(ctx));
  for (LenskitConfiguration config: ctx.environment.loadConfigurations(ctx.getConfigFiles())) {
    loader.addConfiguration(config);
  }
  LenskitRecommenderEngine engine = loader.load(file);
  return engine.getGraph();
}
org.lenskitLenskitRecommenderEnginegetGraph

Javadoc

Get the dependency graph of the recommender engine.

Popular methods of LenskitRecommenderEngine

  • createRecommender
    Create a LensKit recommender.
  • build
    Build a LensKit recommender engine from a configuration. The resulting recommender is independent of
  • newBuilder
    Create a new recommender engine builder.
  • newLoader
    Create a new recommender engine loader.
  • write
    Write the state of this recommender engine to the given stream so that it can be recreated later usi
  • <init>
    Build an engine encapsulating a dependency graph. You generally do not want to use this - use Lenski
  • createRecommenderGraph

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Join (org.hibernate.mapping)
  • Top plugins for Android Studio
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