function(sample, explain) {
		var splitLabels = this.classifyRecursive(sample, explain, this.root);
		//console.log("splitLabels:"+JSON.stringify(splitLabels));
		if (explain>0) {
			splitLabels.classes = splitLabels.classes.map(this.joinLabel);
		} else {
			splitLabels = splitLabels.map(this.joinLabel);
		}
		return splitLabels;
	}
function(sample, explain) {
		var splitLabels = this.classifyRecursive(sample, explain, this.root);
		
		if (explain>0) {
			splitLabels.classes = splitLabels.classes.map(this.joinLabel);
		} else {
			splitLabels = splitLabels.map(this.joinLabel);
		}
		return splitLabels;
	}
function ( sample , explain ) { var splitLabels = this . classifyRecursive ( sample , explain , this . root ) ; //console.log("splitLabels:"+JSON.stringify(splitLabels)); if ( explain > 0 ) { splitLabels . classes = splitLabels . classes . map ( this . joinLabel ) ; } else { splitLabels = splitLabels . map ( this . joinLabel ) ; } return splitLabels ; }
Use the model trained so far to classify a new sample.

@param sample a document.
@param explain - int - if positive, an "explanation" field, with the given length, will be added to the result.

@return an array whose VALUES are classes.
Use the model trained so far to classify a new sample .