def testIBP():
 from pybrain.tools.plotting.colormaps import ColorMap
 import pylab
 n = 50
 ps = [(10, 0.1), (10,), (50,), (50, 0.5)]
 ms = []
 for p in ps:
  if (len(p) > 1):
   m = generateIBP(n, p[0], p[1])
  else:
   m = generateIBP(n, p[0])
  ms.append(leftordered(m))
 for m in ms:
  ColorMap(m, pixelspervalue=3)
 pylab.show()

def testIBP ( ) : from pybrain . tools . plotting . colormaps import ColorMap import pylab n = 50 ps = [ ( 10 , 0.1 ) , ( 10 , ) , ( 50 , ) , ( 50 , 0.5 ) ] ms = [ ] for p in ps : if ( len ( p ) > 1 ) : m = generateIBP ( n , p [ 0 ] , p [ 1 ] ) else : m = generateIBP ( n , p [ 0 ] ) ms . append ( leftordered ( m ) ) for m in ms : ColorMap ( m , pixelspervalue = 3 ) pylab . show ( )
plot matrices generated by an ibp .