View reptile.py
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
mode = 'maml'
seed = 0
plot = True
innerstepsize = 0.02 # stepsize in inner SGD
innerepochs = 1 # number of epochs of each inner SGD
outerstepsize0 = 0.1 if mode == 'reptile' else 0.001 # stepsize of outer optimization, i.e., meta-optimization
View logviewer.rb
def puts_colored(string, num)
puts "[\e[32m#{num}\e[0m] #{string}"
end
file_name = ARGV[0]
File.open(file_name) do |file|
file.each_line {|line|}
timestamp = File.stat(file_name).mtime
current_line = 0