import json

def report(algorithm, obj, experiment_name):
	save_dir = "../../Misc/results/sigmoid/" + experiment_name + "/"
	if("coin" in algorithm):
		result_dict = {"spread":obj.spread, "regret":obj.regret, "under_exps":obj.under_exps, "l2_error":obj.l2_error}
	else:
		result_dict = {"spread":obj.spread, "regret":obj.regret, "l2_error":obj.l2_error}
	json.dump(result_dict, open(save_dir+algorithm+"_results.json", 'w'))
