public void execute(Tuple input) {
Object obj = input.getValue(0);
//If we get the instance headers set them and reset
if(obj.getClass() == Instances.class){
INST_HEADERS = new InstancesHeader((Instances) obj);
classifier.setModelContext(INST_HEADERS);
classifier.resetLearningImpl();
}else if(obj.getClass() == SparseInstance.class){
//If it's an instance
SparseInstance inst = (SparseInstance) obj;