code: def printDiagnostics(exp, sequences, objects, args, verbosity=0):
    
    print "Experiment start time:", time.ctime()
    print "\nExperiment arguments:"
    pprint.pprint(args)
  
    r = sequences.objectConfusion()
    print "Average common pairs in sequences=", r[0],
    print ", features=",r[2]
  
    r = objects.objectConfusion()
    print "Average common pairs in objects=", r[0],
    print ", locations=",r[1],
    print ", features=",r[2]
  
    # For detailed debugging
    if verbosity > 0:
      print "\nObjects are:"
      for o in objects:
        pairs = objects[o]
        pairs.sort()
        print str(o) + ": " + str(pairs)
      print "\nSequences:"
      for i in sequences:
        print i,sequences[i]
  
    print "\nNetwork parameters:"
    pprint.pprint(exp.config)
docs: Useful diagnostics for debugging.