code: func NewAveragedPerceptron(weights map[string]map[string]float64,
  	tags map[string]string, classes []string) *AveragedPerceptron {
  	return &AveragedPerceptron{
  		totals: make(map[string]float64), stamps: make(map[string]float64),
  		classes: classes, tagMap: tags, weights: weights}
  }
docs: // NewAveragedPerceptron creates a new AveragedPerceptron model.