<s> import numpy as np <EOL> import sys <EOL> if len ( sys . argv ) < <NUM_LIT:3> : <EOL> sys . exit ( "<STR_LIT>" ) <EOL> predictions_paths = sys . argv [ <NUM_LIT:1> : - <NUM_LIT:1> ] <EOL> target_path = sys . argv [ - <NUM_LIT:1> ] <EOL> predictions = [ np . load ( path ) for path in predictions_paths ] <EOL> avg_predictions = np . mean ( predictions , axis = <NUM_LIT:0> ) <EOL> np . save ( target_path , avg_predictions ) </s>
