public final class RecommenderInstantiator
extends java.lang.Object
Process a recommender graph to deal with its shareable nodes.
Modifier and Type | Method and Description |
---|---|
static RecommenderInstantiator |
create(DAGNode<Component,Dependency> g) |
static RecommenderInstantiator |
forConfig(LenskitConfiguration config)
Deprecated.
|
DAGNode<Component,Dependency> |
getGraph()
Get the graph from this instantiator.
|
DAGNode<Component,Dependency> |
instantiate()
Instantiate the recommender graph.
|
DAGNode<Component,Dependency> |
simulate()
Simulate instantiating a graph.
|
public static RecommenderInstantiator create(DAGNode<Component,Dependency> g)
@Deprecated public static RecommenderInstantiator forConfig(LenskitConfiguration config) throws RecommenderConfigurationException
public DAGNode<Component,Dependency> getGraph()
Get the graph from this instantiator.
public DAGNode<Component,Dependency> instantiate() throws RecommenderBuildException
Instantiate the recommender graph. This requires the graph to have been resolved with a real DAO instance, not just a class, if anything references the DAO. Use LenskitConfiguration.buildGraph()
to get such a graph. The result of instantiating a graph is that all shareable nodes will be instantiated.
RecommenderBuildException
- If there is an error instantiating the graph.public DAGNode<Component,Dependency> simulate() throws RecommenderBuildException
Simulate instantiating a graph.
RecommenderBuildException