public ClusterPrediction predict(StringKeyedVector instance) {
Map<String, Double> scores = new HashMap<String, Double>();
for(Map.Entry<String, StringKeyedVector> e : param.entrySet()) {
scores.put(e.getKey(), e.getValue().dot(instance));
}
return new ClusterPrediction(scores);
}