def parse_tadm_weights(paramfile):
 weights = []
 for line in paramfile:
  weights.append(float(line.strip()))
 return numpy.array(weights, u'd')

def parse_tadm_weights ( paramfile ) : weights = [ ] for line in paramfile : weights . append ( float ( line . strip ( ) ) ) return numpy . array ( weights , u'd' )
given the stdout output generated by tadm when training a model .