Package org.grouplens.lenskit.util.io

Examples of org.grouplens.lenskit.util.io.CompressionMode.wrapInput()


        logger.info("Loading recommender engine from {}", file);
        FileInputStream input = new FileInputStream(file);
        try {
            CompressionMode effComp = compressionMode.getEffectiveCompressionMode(file.getName());
            logger.info("using {} compression", effComp);
            return loadInternal(effComp.wrapInput(input));
        } finally {
            input.close();
        }
    }
View Full Code Here


            Stopwatch timer = Stopwatch.createStarted();
            LenskitRecommenderEngine engine;
            CompressionMode comp = CompressionMode.autodetect(modelFile);
            InputStream input = new FileInputStream(modelFile);
            try {
                input = comp.wrapInput(input);
                engine = loader.load(input);
            } finally {
                input.close();
            }
            timer.stop();
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.