package edu.ntnu.idi.goldfish;

import edu.ntnu.idi.goldfish.mahout.SMDataModel;
import org.apache.mahout.cf.taste.common.TasteException;

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

public class Test {

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

@@ -29,526 +29,89 @@
 h;%0A%0A
-import edu.ntnu.idi.goldfish.mahout.SMDataModel;%0Aimport org.apache.mahout.cf.taste.common.TasteException;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Apublic class Test %7B%0A%0A%09public static void main(String%5B%5D args) throws IOException, TasteException %7B%0A%09%09%0A%09%09SMDataModel model = new SMDataModel(new File(%22datasets/movielens-synthesized/ratings.csv%22));%0A%09%09model.writeDatasetToFile(%22/tmp/ratings-synthesized.csv%22);%0A%09%09System.out.println(String.format(%22users: %25d, items: %25d%22, model.getNumUsers(), model.getNumItems()));%0A%09%09
+public class Test %7B%0A%0A%09public static void main(String%5B%5D args) throws Exception %7B%0A%0A
 %0A%09%7D%0A

Clear Test body