#NEWLINE# def post( self ) : #NEWLINE# #INDENT# reqs = request . get_json ( ) #NEWLINE# self . check_inputs_or_abort ( reqs ) #NEWLINE# examples_to_learn_from = list ( zip ( reqs [ 'inputs' ] , reqs [ 'outputs' ] ) ) #NEWLINE# logger . log_learn_entry ( examples_to_learn_from ) #NEWLINE# best_score = None #NEWLINE# if examples_to_learn_from : #NEWLINE# #INDENT# transform_searcher = learner . get_transform_searcher ( ) #NEWLINE# ( chosen_transformations , best_score ) = transform_searcher . search_and_find_best_sequence ( examples_to_learn_from ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# chosen_transformations = [ ] #NEWLINE# #UNINDENT# result = make_learn_result ( chosen_transformations ) #NEWLINE# logger . log_learn_exit ( result , best_score ) #NEWLINE# return jsonify ( result )