code: public void classify(Observation obsr) {
      
  	int i;	
  	for (i = 0; i < numLabels; i++) {
  	    temp[i] = 0.0;
  	}
  	
  	model.feaGen.startScanFeatures(obsr);
  	while (model.feaGen.hasNextFeature()) {
  	    Feature f = model.feaGen.nextFeature();
  	    
  	    temp[f.label] += model.lambda[f.idx] * f.val;
  	}
  	
  	double max = temp[0];
  	int maxLabel = 0;
  	for (i = 1; i < numLabels; i++) {
  	    if (max < temp[i]) {
  		max = temp[i];
  		maxLabel = i;
  	    }
  	}
  	
  	obsr.modelLabel = maxLabel;
      }
docs: Classify.
  
  @param obsr the obsr