package edu.ntnu.idi.goldfish;

import java.io.File;
import java.io.IOException;

import org.apache.mahout.cf.taste.common.TasteException;
import org.apache.mahout.cf.taste.model.DataModel;

import edu.ntnu.idi.goldfish.mahout.SMDataModel;

public class Test {

	public static void main(String[] args) throws IOException, TasteException {
		
		DataModel model = new SMDataModel(new File("datasets/movielens-synthesized/ratings.csv"));
		System.out.println(String.format("users: %d, items: %d", model.getNumUsers(), model.getNumItems()));
		
	}
	
}

@@ -337,16 +337,18 @@
  %7B%0A%09%09%0A%09%09
+SM
 DataMode
@@ -430,16 +430,76 @@
 csv%22));%0A
+%09%09model.writeDatasetToFile(%22/tmp/ratings-synthesized.csv%22);%0A
 %09%09System

Test writetofile