本文整理汇总了Python中match.Match.run_match方法的典型用法代码示例。如果您正苦于以下问题:Python Match.run_match方法的具体用法?Python Match.run_match怎么用?Python Match.run_match使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类match.Match
的用法示例。
在下文中一共展示了Match.run_match方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: max
# 需要导入模块: from match import Match [as 别名]
# 或者: from match.Match import run_match [as 别名]
pass
#print max([x.quality for x in app.applied_to]), float(s1) / len(app.applied_to), min([x.quality for x in app.applied_to]), len(app.applied_to), app.name
else:
print('to picky', index, app.quality)
#Institutions invite applicants for interview
for index, inst in enumerate(all_institutions):
inst.interview(inst.applied)
s1 = sum([x.quality for x in inst.invite_interview])
#print float(s1) / len(inst.invite_interview), len(inst.invite_interview), inst.quality
#Applicants review the places they interviewed at, and choose who to rank, Then Rank them
for app in all_applicants:
app.rank_interviewed_inst(app.interviewed_at)
#print [x.quality for x in app.rank_inst]
app.sort_rank_interviewed_inst()
#print [x.quality for x in app.rank_inst]
#Institutions review applicants after interview, Rank Applicants
for inst in all_institutions:
inst.rank_interviewed_inst(inst.invite_interview)
#print [x.quality for x in inst.rank_list]
# Now for the Match
m1 = Match(all_applicants, all_institutions)
m1.run_match()
# Results
r1 = StatsAndplots(all_applicants, all_institutions)
r1.stats()