class_docstr: An averaged perceptron, as implemented by Matthew Honnibal.
  
  See more implementation details here:
      https://explosion.ai/blog/part-of-speech-pos-tagger-in-python
class_docstr_tok: ["An","averaged","perceptron",",","as","implemented","by","Matthew","Honnibal",".","See","more","implementation","details","here",":","https",":","\/\/explosion.ai\/blog\/part-of-speech-pos-tagger-in-python"]
docstr: Average weights from all iterations.
docstr_tok: ["Average","weights","from","all","iterations","."]
code: def average_weights(self):
      """Average weights from all iterations."""
      for feat, weights in self.weights.items():
          new_feat_weights = {}
          for clas, weight in weights.items():
              param = (feat, clas)
              total = self._totals[param]
              total += (self.i - self._tstamps[param]) * weight
              averaged = round(total / self.i, 3)
              if averaged:
                  new_feat_weights[clas] = averaged
          self.weights[feat] = new_feat_weights
  
imports: import logging
  import pickle
  import random
  from collections import defaultdict
  from nltk import jsontags
  from nltk.data import find, load
  from nltk.tag.api import TaggerI
label_desc: Use image node_id 5 for calling the AveragedPerceptron obj's underlying member method code with example usage: obj.average_weights() without return types