# Script to extract columns from the output of Gavin's java UCS 
#
# col.	 value
# 1   	'RESULTS'
# 2	'iteration'
# 3	iteration
# 4 	'accuracy'
# 5	accuracy
# 6	'v'
# 7	v
# 8	'macro'
# 9	pop size in macroclassifiers
# 10	'aucacc'
# 11	average area under accuracy curve of all test passes so far in this fold
# 12	'online' or 'offline'
# 13	0 or 1	
# 14	'avgmargin'
# 15	average margin of most recent test pass
#
# Below we extract the RESULTS rows and then from them the columns for:
# iteration, accuracy, pop size, aucacc, average margin

grep RESULTS $1 |  cut -d ' ' -f 3,5,9,11,15 
