code: def trimSegments(self, minPermanence=None, minNumSyns=None):
      
      # Fill in defaults
      if minPermanence is None:
        minPermanence = 0.0
      if minNumSyns is None:
        minNumSyns = 0
  
      # Print all cells if verbosity says to
      if self.verbosity >= 5:
        print "Cells, all segments:"
        self.printCells(predictedOnly=False)
  
      return self.cells4.trimSegments(minPermanence=minPermanence, minNumSyns=minNumSyns)
docs: Overrides :meth:`nupic.algorithms.backtracking_tm.BacktrackingTM.trimSegments`.