Changeset 296 for branches/UQ/math/examples2/log_reader.py
- Timestamp:
- 07/07/10 12:22:35 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UQ/math/examples2/log_reader.py
r255 r296 9 9 f.close() 10 10 11 contents = file.split("_ #_ __ChiSq__ __params__\n")11 contents = file.split("___#___ __ChiSq__ __params__\n") 12 12 lines = contents[-1].split('\n') 13 13 … … 16 16 for line in lines[:-1]: 17 17 values = line.split(" ") 18 iter.append(eval(values[0]) )18 iter.append(eval(values[0])[0]) #FIXME: we ignore 'id' here 19 19 cost.append(eval(values[1])) 20 20 param.append(eval(values[2])) … … 31 31 ax1 = fig.add_subplot(2,1,1) 32 32 for j in range(len(param[0])): 33 #ax1.plot(iter,conv[j],label=str(j))34 33 ax1.plot(iter,conv[j],label=str(j),marker='o') 35 34 plt.legend() 36 35 37 36 ax2 = fig.add_subplot(2,1,2) 38 #ax2.plot(iter,cost,label='cost')39 37 ax2.plot(iter,cost,label='cost',marker='o') 40 38 plt.legend()
Note: See TracChangeset
for help on using the changeset viewer.