dist/multilabel/MetaLabeler.js
function(sample, labels) {
		// The ranker is just trained by the given set of relevant labels:
		this.ranker.trainOnline(sample, labels);

		// The counter is trained by the *number* of relevant labels:
		var labelCount = (Array.isArray(labels)? labels: Object.keys(labels)).length;
		this.counter.trainOnline(sample, labelCount);
	}
function(sample, labels) {
		// The ranker is just trained by the given set of relevant labels:
		this.ranker.trainOnline(sample, labels);

		// The counter is trained by the *number* of relevant labels:
		var labelCount = (Array.isArray(labels)? labels: Object.keys(labels)).length;
		this.counter.trainOnline(sample, labelCount);
	}
Tell the classifier that the given sample belongs to the given classes.

@param sample  a document.
@param labels an array whose VALUES are classes.