Package org.grouplens.lenskit.inject

Examples of org.grouplens.lenskit.inject.RecommenderGraphBuilder.addConfiguration()


        if (defaults != null) {
            builder.addConfiguration(defaults);
        }
        builder.addConfiguration(config);
        RecommenderGraphBuilder rgb = new RecommenderGraphBuilder();
        rgb.addConfiguration(defaults);
        rgb.addConfiguration(config);
        try {
            return rgb.buildGraph();
        } catch (ResolutionException e) {
            throw new RecommenderConfigurationException("error configuring recommender", e);
View Full Code Here


            builder.addConfiguration(defaults);
        }
        builder.addConfiguration(config);
        RecommenderGraphBuilder rgb = new RecommenderGraphBuilder();
        rgb.addConfiguration(defaults);
        rgb.addConfiguration(config);
        try {
            return rgb.buildGraph();
        } catch (ResolutionException e) {
            throw new RecommenderConfigurationException("error configuring recommender", e);
        }
View Full Code Here

        // Build the initial graph
        logger.debug("building graph from {} configurations", configurations.size());
        RecommenderGraphBuilder rgb = new RecommenderGraphBuilder();
        rgb.setClassLoader(classLoader);
        for (Pair<LenskitConfiguration,ModelDisposition> cfg: configurations) {
            rgb.addConfiguration(cfg.getLeft());
        }
        RecommenderInstantiator inst;
        try {
            inst = RecommenderInstantiator.create(rgb.buildGraph());
        } catch (ResolutionException e) {
View Full Code Here

        if (domain != null) {
            daoConfig.bind(PreferenceDomain.class).to(domain);
        }

        RecommenderGraphBuilder rgb = new RecommenderGraphBuilder();
        rgb.addConfiguration(daoConfig);
        rgb.addConfiguration(algorithm.getConfig());
        DAGNode<Component,Dependency> graph = null;
        try {
            graph = rgb.buildGraph();
        } catch (ResolutionException e) {
View Full Code Here

            daoConfig.bind(PreferenceDomain.class).to(domain);
        }

        RecommenderGraphBuilder rgb = new RecommenderGraphBuilder();
        rgb.addConfiguration(daoConfig);
        rgb.addConfiguration(algorithm.getConfig());
        DAGNode<Component,Dependency> graph = null;
        try {
            graph = rgb.buildGraph();
        } catch (ResolutionException e) {
            throw new TaskExecutionException("Cannot resolve graph", e);
View Full Code Here

     * @throws IOException
     * @throws RecommenderConfigurationException
     */
    private DAGNode<Component,Dependency> makeNewGraph() throws IOException, RecommenderConfigurationException {
        RecommenderGraphBuilder rgb = new RecommenderGraphBuilder();
        rgb.addConfiguration(makeDataConfig());
        for (LenskitConfiguration config: environment.loadConfigurations(getConfigFiles())) {
            rgb.addConfiguration(config);
        }

        try {
View Full Code Here

     */
    private DAGNode<Component,Dependency> makeNewGraph() throws IOException, RecommenderConfigurationException {
        RecommenderGraphBuilder rgb = new RecommenderGraphBuilder();
        rgb.addConfiguration(makeDataConfig());
        for (LenskitConfiguration config: environment.loadConfigurations(getConfigFiles())) {
            rgb.addConfiguration(config);
        }

        try {
            return rgb.buildGraph();
        } catch (ResolutionException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.