} else {
trainingSet.add(uids[i]);
}
}
Corpus[] corpusSplit = corpus.split(trainingSet, testingSet);
Corpus training = corpusSplit[0];
Corpus testing = corpusSplit[1];
System.out.println(training.size()+" profiles in the training set");
System.out.println(testing.size()+" profiles in the testing set");
System.out.println("Training SVM...");
SVMTopicModel svm = new SVMTopicModel(training,topicType,kernelType,kernelParam,c);
System.out.println("SVM Trained");
//now use svm to infer topics for corpus testing