def _check_compare_metafeature_lists(self, computed_mfs, known_mfs, filename):
test_failures = {}<EOL>fail_message = "<STR_LIT>"<EOL>with open("<STR_LIT>") as f:<EOL><INDENT>master_mf_ids = json.load(f)["<STR_LIT>"].keys()<EOL><DEDENT>master_mf_ids_set = set(master_mf_ids)<EOL>known_mf_ids_set = set({<EOL>x for x in known_mfs.keys() if "<STR_LIT>" not in x<EOL>})<EOL>computed_mf_ids_set = set(computed_mfs.keys())<EOL>intersect_mf_ids_set = master_mf_ids_set.intersection(known_mf_ids_set<EOL>).intersection(computed_mf_ids_set)<EOL>master_diffs = master_mf_ids_set - intersect_mf_ids_set<EOL>if len(master_diffs) > <NUM_LIT:0>:<EOL><INDENT>test_failures["<STR_LIT>"] = list(master_diffs)<EOL><DEDENT>known_diffs = known_mf_ids_set - intersect_mf_ids_set<EOL>if len(known_diffs) > <NUM_LIT:0>:<EOL><INDENT>test_failures["<STR_LIT>"] = list(known_diffs)<EOL><DEDENT>computed_diffs = computed_mf_ids_set - intersect_mf_ids_set<EOL>if len(computed_diffs) > <NUM_LIT:0>:<EOL><INDENT>test_failures["<STR_LIT>"] = list(computed_diffs)<EOL><DEDENT>return self._format_check_report(<EOL>"<STR_LIT>", fail_message, test_failures, filename<EOL>)<EOL>
Tests whether computed_mfs matches the list of previously computed metafeature
names as well as the list of computable metafeatures in Metafeatures.list_metafeatures