Last active
February 6, 2017 15:11
-
-
Save brinkar/28436af3f685f710a4d2bd58018267d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def MAML(**params): | |
while True: | |
score, within_constraints = define_problem(**params) | |
data = collect_data() # TODO: Split in train/test? | |
model = simple_model(data) | |
assert within_constraints(model) | |
model_score = score(model, data) | |
while True: | |
data = more_and_or_better_data_if_available() | |
model = improve_model(data) | |
if within_constraints(model) and score(model, data) > model_score: | |
model_score = score(model, data) | |
else: | |
params, params_updated = update_params() | |
if not params_updated: | |
break | |
return model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment