Package org.grouplens.lenskit.eval

Examples of org.grouplens.lenskit.eval.TaskExecutionException


                throw closer.rethrow(th);
            } finally {
                closer.close();
            }
        } catch (IOException e) {
            throw new TaskExecutionException("Error writing output file", e);
        }
        return makeDataSource();
    }
View Full Code Here


                outputs = openExperimentOutputs(layout, measurements, resultsBuilder, closer);
                DAGNode<JobGraph.Node,JobGraph.Edge> jobGraph;
                try {
                    jobGraph = makeJobGraph(experiments);
                } catch (RecommenderConfigurationException ex) {
                    throw new TaskExecutionException("Recommender configuration error", ex);
                }
                if (taskGraphFile != null) {
                    logger.info("writing task graph to {}", taskGraphFile);
                    JobGraph.writeGraphDescription(jobGraph, taskGraphFile);
                }
                registerTaskListener(jobGraph);

                // tell all metrics to get started
                runEvaluations(jobGraph);
            } catch (Throwable th) {
                throw closer.rethrow(th, TaskExecutionException.class, InterruptedException.class);
            } finally {
                closer.close();
            }

            logger.info("evaluation {} completed", getName());

            return resultsBuilder.build();
        } catch (IOException e) {
            throw new TaskExecutionException("I/O error", e);
        } finally {
            experiments = null;
            measurements = null;
            outputs = null;
            layout = null;
View Full Code Here

        try {
            exec.execute(graph);
        } catch (ExecutionException e) {
            Throwables.propagateIfInstanceOf(e.getCause(), TaskExecutionException.class);
            throw new TaskExecutionException("error in evaluation job task", e.getCause());
        }
    }
View Full Code Here

    public Table call() throws TaskExecutionException {
        result.setProject(project);
        try {
            return result.perform();
        } catch (InterruptedException e) {
            throw new TaskExecutionException("execution interrupted", e);
        }
    }
View Full Code Here

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

        logger.info("dumping graph {}", getName());
        try {
            Files.createParentDirs(output);
            GraphDumper.renderGraph(graph, output);
        } catch (IOException e) {
            throw new TaskExecutionException("error writing graph", e);
        } catch (RecommenderBuildException e) {
            throw new TaskExecutionException("error processing graph", e);
        }

        // TODO Support dumping the instantiated graph again
        return output;
    }
View Full Code Here

            Set<String> packages = directory.getPackages(name);
            logger.error("Cannot resolve class or property " + name);
            if (!packages.isEmpty()) {
                logger.info("Did you intend to import it from {}?", Joiner.on(", ").join(packages));
            }
            throw new TaskExecutionException("unresolvable property " + name, e);
        } catch (RuntimeException e) {
            Throwables.propagateIfInstanceOf(e.getCause(), TaskExecutionException.class);
            throw new TaskExecutionException("error running configuration script", e);
        }
        return result;
    }
View Full Code Here

                packer.close();
            }
            stage.commit();
        } catch (IOException ex) {
            logger.error("error packing {}: {}", outFile, ex);
            throw new TaskExecutionException("error packing " + outFile, ex);
        } finally {
            stage.close();
        }

        return source;
View Full Code Here

            }
        }
        try {
            createTTFiles();
        } catch (IOException ex) {
            throw new TaskExecutionException("Error writing data sets", ex);
        }
        return getTTFiles();
    }
View Full Code Here

                    }
                }

            }
        } catch (IOException e) {
            throw new TaskExecutionException("Error writing to the train test files", e);
        } finally {
            historyCursor.close();
        }
    }
View Full Code Here

                        trainWriters[f].writeRating(ratings.get(i));
                    }
                }
            }
        } catch (IOException e) {
            throw new TaskExecutionException("Error writing to the train test files", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.grouplens.lenskit.eval.TaskExecutionException

Copyright © 2018 www.massapicom. 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.