Skip to content

Commit

Permalink
test function for hw1
Browse files Browse the repository at this point in the history
  • Loading branch information
santiaago committed Jan 25, 2013
1 parent 7c3398f commit a691b0d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion hw1.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,14 @@ def run_PLA(N_samples,N_points):
print 'number of iteration avg: %s ' % (str(sum(iterations)/len(iterations)*1.0))
print 'average of difference in function g: %s' % ( sum(diff)/(len(diff)*1.0) )


def tests():
#-1
#-2
#-3
#-4-@
#-5-@
#-6
#-7-8
run_PLA(1000,10)
#-9-10
run_PLA(1000,100)

0 comments on commit a691b0d

Please sign in to comment.