Package uk.ac.ucl.panda.filtering.collabfiltering.util

Examples of uk.ac.ucl.panda.filtering.collabfiltering.util.FileInput.nextLine()


    private void readDataset(String filename, String delimiter)
    {
        FileInput in = new FileInput(filename);
        while (in.hasNextLine())
        {
            String[] split = in.nextLine().split(delimiter);
            int user = Integer.valueOf(split[0]);
            int item = Integer.valueOf(split[1]);
            double rating = Double.valueOf(split[2]);

            super.setRating(user, item, rating);
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.