expt: Ready to run new experiments with HUE
This commit is contained in:
		@ -23,7 +23,7 @@ def main(args):
 | 
			
		||||
  # The landmarks percentages
 | 
			
		||||
  lmdks_pct = [0, 20, 40, 60, 80, 100]
 | 
			
		||||
  # Landmarks' thresholds
 | 
			
		||||
  lmdks_th = [0, .13, .15, .23, .3, 10]
 | 
			
		||||
  lmdks_th = [0, .54, .68, .88, 1.12, 10]
 | 
			
		||||
  # The privacy budget
 | 
			
		||||
  epsilon = 1.0
 | 
			
		||||
 | 
			
		||||
@ -45,8 +45,8 @@ def main(args):
 | 
			
		||||
  plt.xlim(x_i.min() - x_margin, x_i.max() + x_margin)
 | 
			
		||||
  # The y axis
 | 
			
		||||
  plt.ylabel('Mean absolute error (kWh)')  # Set y axis label.
 | 
			
		||||
  # plt.yscale('log')
 | 
			
		||||
  # plt.ylim(0, 8)
 | 
			
		||||
  plt.yscale('log')
 | 
			
		||||
  plt.ylim(.1, 10000)
 | 
			
		||||
  # Bar offset
 | 
			
		||||
  x_offset = -(bar_width/2)*(n - 1)
 | 
			
		||||
 | 
			
		||||
@ -86,15 +86,17 @@ def main(args):
 | 
			
		||||
 | 
			
		||||
  plt.axhline(
 | 
			
		||||
    y = mae_evt,
 | 
			
		||||
    color = '#212121',
 | 
			
		||||
    linewidth=lmdk_lib.line_width
 | 
			
		||||
  )
 | 
			
		||||
  plt.text(x_i[-1], mae_evt, '        event')
 | 
			
		||||
  plt.text(x_i[-1] + x_i[-1]*.14, mae_evt - mae_evt*.14, 'event')
 | 
			
		||||
 | 
			
		||||
  plt.axhline(
 | 
			
		||||
    y = mae_usr,
 | 
			
		||||
    color = '#616161',
 | 
			
		||||
    linewidth=lmdk_lib.line_width
 | 
			
		||||
  )
 | 
			
		||||
  plt.text(x_i[-1], mae_usr, '        user')
 | 
			
		||||
  plt.text(x_i[-1] + x_i[-1]*.14, mae_usr - mae_usr*.14, 'user')
 | 
			
		||||
 | 
			
		||||
  plt.bar(
 | 
			
		||||
    x_i + x_offset,
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user