def save_run_info(model, test_set_name, train_set_name, date_string,
                  time_string, feature_epoch_order, create_files,
                  epochs, run_multi, run_name, commit):
    info_file_name = ('{model_class}_{run_name}_{short_commit}_{start_time}'
                      '_info.json'
                      .format(model_class=model.__class__.__name__,
                              short_commit=commit[:5],
                              run_name=run_name,
                              start_time=time_string)
                      )
    info_file_path = join(RESULTS_DIR_PATH, info_file_name)
    # Create a dict of data
    excluded_params = ['users', 'movies', 'train_points', 'residuals',
                       'stats', 'max_movie', 'max_user']
    run_info = {key: value for key, value in model.__dict__.items()
                if excluded_params not in key}
    run_info['algorithm'] = model.__class__.__name__
    run_info['last_commit'] = commit
    run_info['train_set_name'] = train_set_name
    run_info['name'] = run_name
    run_info['time'] = time_string
    run_info['date'] = date_string
    run_info['test_set_name'] = test_set_name
    run_info['num_epochs'] = epochs
    run_info['create_files'] = create_files
    run_info['run_multi'] = run_multi
    run_info['feature_epoch_order'] = feature_epoch_order
    json.dump(run_info, open(info_file_path, 'w'), indent=4,
              sort_keys=True)
    return info_file_path
dataset/ETHPy150Open jvanbrug/netflix/scripts/run_model.py/save_run_info/swapped operands of `not in`