/** * Construct a recommender with some additional configuration. This can be used to do things * like add data source configuration on a per-recommender, rather than per-engine, basis. * * @param config The configuration to adjust the recommender. * @return The constructed recommender. * @throws RecommenderConfigurationException if there is an error configuring the recommender. */ public LenskitRecommender createRecommender(LenskitConfiguration config) throws RecommenderConfigurationException { final DAGNode<Component, Dependency> toBuild = createRecommenderGraph(config); return new LenskitRecommender(toBuild); }
/** * Construct a recommender with some additional configuration. This can be used to do things * like add data source configuration on a per-recommender, rather than per-engine, basis. * * @param config The configuration to adjust the recommender. * @return The constructed recommender. * @throws RecommenderConfigurationException if there is an error configuring the recommender. */ public LenskitRecommender createRecommender(LenskitConfiguration config) throws RecommenderConfigurationException { final DAGNode<Component, Dependency> toBuild = createRecommenderGraph(config); return new LenskitRecommender(toBuild); }