/** * Instantiate the recommender graph. * @param graph The recommender graph. * @return The instantiated graph. */ protected DAGNode<Component, Dependency> instantiateGraph(DAGNode<Component, Dependency> graph) { RecommenderInstantiator inst = RecommenderInstantiator.create(graph); graph = inst.instantiate(); return graph; }
@Deprecated public static RecommenderInstantiator forConfig(LenskitConfiguration config) throws RecommenderConfigurationException { return create(config.buildGraph()); }
logger.debug("graph has {} nodes", graph.getReachableNodes().size()); logger.debug("simulating instantiation"); RecommenderInstantiator instantiator = RecommenderInstantiator.create(graph); DAGNode<Component, Dependency> unshared = instantiator.simulate(); logger.debug("unshared graph has {} nodes", unshared.getReachableNodes().size());
/** * Instantiate the recommender graph. * @param graph The recommender graph. * @return The instantiated graph. */ protected DAGNode<Component, Dependency> instantiateGraph(DAGNode<Component, Dependency> graph) { RecommenderInstantiator inst = RecommenderInstantiator.create(graph); graph = inst.instantiate(); return graph; }
@Deprecated public static RecommenderInstantiator forConfig(LenskitConfiguration config) throws RecommenderConfigurationException { return create(config.buildGraph()); }
if (cache == null) { logger.debug("Building directly without a cache"); RecommenderInstantiator ri = RecommenderInstantiator.create(cfgGraph); graph = ri.instantiate(); } else {
logger.debug("graph has {} nodes", graph.getReachableNodes().size()); logger.debug("simulating instantiation"); RecommenderInstantiator instantiator = RecommenderInstantiator.create(graph); DAGNode<Component, Dependency> unshared = instantiator.simulate(); logger.debug("unshared graph has {} nodes", unshared.getReachableNodes().size());