parameters: (net)
docstring: Print some stats about a net and its activations
docstring_summary: Print some stats about a net and its activations
docstring_tokens: Print some stats about a net and its activations
function: def shownet(net):
      '''Print some stats about a net and its activations'''
      
      print '%-41s%-31s%s' % ('', 'acts', 'act diffs')
      print '%-45s%-31s%s' % ('', 'params', 'param diffs')
      for k, v in net.blobs.items():
          if k in net.params:
              params = net.params[k]
              for pp, blob in enumerate(params):
                  if pp == 0:
                      print '  ', 'P: %-5s'%k,
                  else:
                      print ' ' * 11,
                  print '%-32s' % repr(blob.data.shape),
                  print '%-30s' % ('(%g, %g)' % (blob.data.min(), blob.data.max())),
                  print '(%g, %g)' % (blob.diff.min(), blob.diff.max())
          print '%-5s'%k, '%-34s' % repr(v.data.shape),
          print '%-30s' % ('(%g, %g)' % (v.data.min(), v.data.max())),
          print '(%g, %g)' % (v.diff.min(), v.diff.max())
function_tokens: def shownet ( net ) : print '%-41s%-31s%s' % ( '' , 'acts' , 'act diffs' ) print '%-45s%-31s%s' % ( '' , 'params' , 'param diffs' ) for k , v in net . blobs . items ( ) : if k in net . params : params = net . params [ k ] for pp , blob in enumerate ( params ) : if pp == 0 : print '  ' , 'P: %-5s' % k , else : print ' ' * 11 , print '%-32s' % repr ( blob . data . shape ) , print '%-30s' % ( '(%g, %g)' % ( blob . data . min ( ) , blob . data . max ( ) ) ) , print '(%g, %g)' % ( blob . diff . min ( ) , blob . diff . max ( ) ) print '%-5s' % k , '%-34s' % repr ( v . data . shape ) , print '%-30s' % ( '(%g, %g)' % ( v . data . min ( ) , v . data . max ( ) ) ) , print '(%g, %g)' % ( v . diff . min ( ) , v . diff . max ( ) )