about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/learning/mk_schedule.m
blob: 018f3d16d3463426f24c680f5d36d834203a6a11 (plain)
1
2
3
4
5
6
7
8
9
10
function schedule = mk_schedule(init_temp, final_temp, anneal_rate)

init_temp = 10; final_temp = 1e-2; anneal_rate = 0.8;
schedule = [];
temp=init_temp;
schedule = [schedule temp];
while temp > final_temp
  temp = temp * anneal_rate;
  schedule = [schedule temp];
end