function(opts) {
	this.retrain_count = opts.retrain_count || 10;
	this.Constant = opts.Constant || 5.0;
	this.weights = {
		//DUMMY_CLASS:{}
	};
	this.weights_sum = {
		//DUMMY_CLASS:{}
	};
	this.seenFeatures = {};
	this.num_iterations = 0
}
function(opts) {
	this.retrain_count = opts.retrain_count || 10;
	this.Constant = opts.Constant || 5.0;
	this.weights = {
		//DUMMY_CLASS:{}
	};
	this.weights_sum = {
		//DUMMY_CLASS:{}
	};
	this.seenFeatures = {};
	this.num_iterations = 0
}
function ( opts ) { this . retrain_count = opts . retrain_count || 10 ; this . Constant = opts . Constant || 5.0 ; this . weights = { //DUMMY_CLASS:{} } ; this . weights_sum = { //DUMMY_CLASS:{} } ; this . seenFeatures = { } ; this . num_iterations = 0 }
Multilabel online classifier based on Perceptron and Passive-Aggressive.

features and categories are strings; samples are hashes.

Based on Python code Copyright (c) 2013 Joseph Keshet.

Conversion to Node.js started by Erel Segal-haLevi, but not finished yet.

@since 2013-08

@param opts
Constant (optional) - tradeoff constant (default=5.0)
retrain_count (optional) - number of epoches to run in trainBatch mode (default=10)
Multilabel online classifier based on Perceptron and Passive - Aggressive .