We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to retrieve values of userCode, itemCode and rating from "/movielens/ml-100k/ratings.txt". I use this way
Resource resource = new Resource("librec.properties"); Configuration conf = new Configuration(); conf.addResource(resource); Randoms.seed(1); TextDataModel dataModel = new TextDataModel(conf); dataModel.buildDataModel(); SparseMatrix trainMatrix = dataModel.getDataSplitter().getTrainData(); int count = trainMatrix.numRows(); for (int i : trainMatrix.rows()) { int userCode = (int) trainMatrix.get(i,0); int itemCode = (int) trainMatrix.get(i, 1); double rating = trainMatrix.get(i, 2); }
when I print values is zero. Any help to fix this error
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I need to retrieve values of userCode, itemCode and rating from "/movielens/ml-100k/ratings.txt".
I use this way
when I print values is zero.
Any help to fix this error
The text was updated successfully, but these errors were encountered: