Merge branch 'master' of git://repo.or.cz/fpbd-bostik
This commit is contained in:
commit
523a70ebd8
316
pyfpdb/Stats.py
316
pyfpdb/Stats.py
|
@ -118,17 +118,17 @@ def vpip(stat_dict, player):
|
||||||
stat = 0.0
|
stat = 0.0
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['vpip'])/float(stat_dict[player]['n'])
|
stat = float(stat_dict[player]['vpip'])/float(stat_dict[player]['n'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'v=%3.1f' % (100*stat) + '%',
|
'v=%3.1f' % (100*stat) + '%',
|
||||||
'vpip=%3.1f' % (100*stat) + '%',
|
'vpip=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['vpip'], stat_dict[player]['n']),
|
'(%d/%d)' % (stat_dict[player]['vpip'], stat_dict[player]['n']),
|
||||||
'Voluntarily Put In Pot %'
|
'Voluntarily Put In Pot %'
|
||||||
)
|
)
|
||||||
except: return (stat,
|
except: return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'v=%3.1f' % (0) + '%',
|
'v=%3.1f' % (0) + '%',
|
||||||
'vpip=%3.1f' % (0) + '%',
|
'vpip=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'Voluntarily Put In Pot %'
|
'Voluntarily Put In Pot %'
|
||||||
)
|
)
|
||||||
|
@ -138,18 +138,18 @@ def pfr(stat_dict, player):
|
||||||
stat = 0.0
|
stat = 0.0
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['pfr'])/float(stat_dict[player]['n'])
|
stat = float(stat_dict[player]['pfr'])/float(stat_dict[player]['n'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'p=%3.1f' % (100*stat) + '%',
|
'p=%3.1f' % (100*stat) + '%',
|
||||||
'pfr=%3.1f' % (100*stat) + '%',
|
'pfr=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['pfr'], stat_dict[player]['n']),
|
'(%d/%d)' % (stat_dict[player]['pfr'], stat_dict[player]['n']),
|
||||||
'Pre-Flop Raise %'
|
'Pre-Flop Raise %'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'p=%3.1f' % (0) + '%',
|
'p=%3.1f' % (0) + '%',
|
||||||
'pfr=%3.1f' % (0) + '%',
|
'pfr=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'Pre-Flop Raise %'
|
'Pre-Flop Raise %'
|
||||||
)
|
)
|
||||||
|
@ -159,18 +159,18 @@ def wtsd(stat_dict, player):
|
||||||
stat = 0.0
|
stat = 0.0
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['sd'])/float(stat_dict[player]['saw_f'])
|
stat = float(stat_dict[player]['sd'])/float(stat_dict[player]['saw_f'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'w=%3.1f' % (100*stat) + '%',
|
'w=%3.1f' % (100*stat) + '%',
|
||||||
'wtsd=%3.1f' % (100*stat) + '%',
|
'wtsd=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['sd'], stat_dict[player]['saw_f']),
|
'(%d/%d)' % (stat_dict[player]['sd'], stat_dict[player]['saw_f']),
|
||||||
'% went to showdown'
|
'% went to showdown'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'w=%3.1f' % (0) + '%',
|
'w=%3.1f' % (0) + '%',
|
||||||
'wtsd=%3.1f' % (0) + '%',
|
'wtsd=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% went to showdown'
|
'% went to showdown'
|
||||||
)
|
)
|
||||||
|
@ -180,18 +180,18 @@ def wmsd(stat_dict, player):
|
||||||
stat = 0.0
|
stat = 0.0
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['wmsd'])/float(stat_dict[player]['sd'])
|
stat = float(stat_dict[player]['wmsd'])/float(stat_dict[player]['sd'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'w=%3.1f' % (100*stat) + '%',
|
'w=%3.1f' % (100*stat) + '%',
|
||||||
'wmsd=%3.1f' % (100*stat) + '%',
|
'wmsd=%3.1f' % (100*stat) + '%',
|
||||||
'(%5.1f/%d)' % (float(stat_dict[player]['wmsd']), stat_dict[player]['sd']),
|
'(%5.1f/%d)' % (float(stat_dict[player]['wmsd']), stat_dict[player]['sd']),
|
||||||
'% won money at showdown'
|
'% won money at showdown'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'w=%3.1f' % (0) + '%',
|
'w=%3.1f' % (0) + '%',
|
||||||
'wmsd=%3.1f' % (0) + '%',
|
'wmsd=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% won money at showdown'
|
'% won money at showdown'
|
||||||
)
|
)
|
||||||
|
@ -201,18 +201,18 @@ def profit100(stat_dict, player):
|
||||||
stat = 0.0
|
stat = 0.0
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['net'])/float(stat_dict[player]['n'])
|
stat = float(stat_dict[player]['net'])/float(stat_dict[player]['n'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%.0f' % (100.0*stat),
|
'%.0f' % (100.0*stat),
|
||||||
'p=%.0f' % (100.0*stat),
|
'p=%.0f' % (100.0*stat),
|
||||||
'p/100=%.0f' % (100.0*stat),
|
'p/100=%.0f' % (100.0*stat),
|
||||||
'%d/%d' % (stat_dict[player]['net'], stat_dict[player]['n']),
|
'%d/%d' % (stat_dict[player]['net'], stat_dict[player]['n']),
|
||||||
'profit/100hands'
|
'profit/100hands'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
print "exception calcing p/100: 100 * %d / %d" % (stat_dict[player]['net'], stat_dict[player]['n'])
|
print "exception calcing p/100: 100 * %d / %d" % (stat_dict[player]['net'], stat_dict[player]['n'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%.0f' % (0),
|
'%.0f' % (0),
|
||||||
'p=%.0f' % (0),
|
'p=%.0f' % (0),
|
||||||
'p/100=%.0f' % (0),
|
'p/100=%.0f' % (0),
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'profit/100hands'
|
'profit/100hands'
|
||||||
|
@ -224,10 +224,10 @@ def saw_f(stat_dict, player):
|
||||||
num = float(stat_dict[player]['saw_f'])
|
num = float(stat_dict[player]['saw_f'])
|
||||||
den = float(stat_dict[player]['n'])
|
den = float(stat_dict[player]['n'])
|
||||||
stat = num/den
|
stat = num/den
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'sf=%3.1f' % (100*stat) + '%',
|
'sf=%3.1f' % (100*stat) + '%',
|
||||||
'saw_f=%3.1f' % (100*stat) + '%',
|
'saw_f=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['saw_f'], stat_dict[player]['n']),
|
'(%d/%d)' % (stat_dict[player]['saw_f'], stat_dict[player]['n']),
|
||||||
'Flop Seen %'
|
'Flop Seen %'
|
||||||
)
|
)
|
||||||
|
@ -235,10 +235,10 @@ def saw_f(stat_dict, player):
|
||||||
stat = 0.0
|
stat = 0.0
|
||||||
num = 0
|
num = 0
|
||||||
den = 0
|
den = 0
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (stat) + '%',
|
'%3.1f' % (stat) + '%',
|
||||||
'sf=%3.1f' % (stat) + '%',
|
'sf=%3.1f' % (stat) + '%',
|
||||||
'saw_f=%3.1f' % (stat) + '%',
|
'saw_f=%3.1f' % (stat) + '%',
|
||||||
'(%d/%d)' % (num, den),
|
'(%d/%d)' % (num, den),
|
||||||
'Flop Seen %'
|
'Flop Seen %'
|
||||||
)
|
)
|
||||||
|
@ -258,18 +258,18 @@ def n(stat_dict, player):
|
||||||
k += 1
|
k += 1
|
||||||
d = 0
|
d = 0
|
||||||
fmt = '%d.%dk' % (k, d)
|
fmt = '%d.%dk' % (k, d)
|
||||||
return (stat_dict[player]['n'],
|
return (stat_dict[player]['n'],
|
||||||
'%s' % fmt,
|
'%s' % fmt,
|
||||||
'n=%d' % (stat_dict[player]['n']),
|
'n=%d' % (stat_dict[player]['n']),
|
||||||
'n=%d' % (stat_dict[player]['n']),
|
'n=%d' % (stat_dict[player]['n']),
|
||||||
'(%d)' % (stat_dict[player]['n']),
|
'(%d)' % (stat_dict[player]['n']),
|
||||||
'number hands seen'
|
'number hands seen'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (0,
|
return (0,
|
||||||
'%d' % (0),
|
'%d' % (0),
|
||||||
'n=%d' % (0),
|
'n=%d' % (0),
|
||||||
'n=%d' % (0),
|
'n=%d' % (0),
|
||||||
'(%d)' % (0),
|
'(%d)' % (0),
|
||||||
'number hands seen'
|
'number hands seen'
|
||||||
)
|
)
|
||||||
|
@ -280,17 +280,17 @@ def fold_f(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['fold_2'])/float(stat_dict[player]['saw_f'])
|
stat = float(stat_dict[player]['fold_2'])/float(stat_dict[player]['saw_f'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'ff=%3.1f' % (100*stat) + '%',
|
'ff=%3.1f' % (100*stat) + '%',
|
||||||
'fold_f=%3.1f' % (100*stat) + '%',
|
'fold_f=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['fold_2'], stat_dict[player]['saw_f']),
|
'(%d/%d)' % (stat_dict[player]['fold_2'], stat_dict[player]['saw_f']),
|
||||||
'folded flop/4th'
|
'folded flop/4th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'ff=%3.1f' % (0) + '%',
|
'ff=%3.1f' % (0) + '%',
|
||||||
'fold_f=%3.1f' % (0) + '%',
|
'fold_f=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'folded flop/4th'
|
'folded flop/4th'
|
||||||
)
|
)
|
||||||
|
@ -301,9 +301,9 @@ def steal(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['steal'])/float(stat_dict[player]['steal_opp'])
|
stat = float(stat_dict[player]['steal'])/float(stat_dict[player]['steal_opp'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'st=%3.1f' % (100*stat) + '%',
|
'st=%3.1f' % (100*stat) + '%',
|
||||||
'steal=%3.1f' % (100*stat) + '%',
|
'steal=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['steal'], stat_dict[player]['steal_opp']),
|
'(%d/%d)' % (stat_dict[player]['steal'], stat_dict[player]['steal_opp']),
|
||||||
'% steal attempted'
|
'% steal attempted'
|
||||||
)
|
)
|
||||||
|
@ -316,9 +316,9 @@ def f_SB_steal(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['sbnotdef'])/float(stat_dict[player]['sbstolen'])
|
stat = float(stat_dict[player]['sbnotdef'])/float(stat_dict[player]['sbstolen'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'fSB=%3.1f' % (100*stat) + '%',
|
'fSB=%3.1f' % (100*stat) + '%',
|
||||||
'fSB_s=%3.1f' % (100*stat) + '%',
|
'fSB_s=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['sbnotdef'], stat_dict[player]['sbstolen']),
|
'(%d/%d)' % (stat_dict[player]['sbnotdef'], stat_dict[player]['sbstolen']),
|
||||||
'% folded SB to steal'
|
'% folded SB to steal'
|
||||||
)
|
)
|
||||||
|
@ -336,9 +336,9 @@ def f_BB_steal(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['bbnotdef'])/float(stat_dict[player]['bbstolen'])
|
stat = float(stat_dict[player]['bbnotdef'])/float(stat_dict[player]['bbstolen'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'fBB=%3.1f' % (100*stat) + '%',
|
'fBB=%3.1f' % (100*stat) + '%',
|
||||||
'fBB_s=%3.1f' % (100*stat) + '%',
|
'fBB_s=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['bbnotdef'], stat_dict[player]['bbstolen']),
|
'(%d/%d)' % (stat_dict[player]['bbnotdef'], stat_dict[player]['bbstolen']),
|
||||||
'% folded BB to steal'
|
'% folded BB to steal'
|
||||||
)
|
)
|
||||||
|
@ -356,17 +356,17 @@ def three_B(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['tb_0'])/float(stat_dict[player]['tb_opp_0'])
|
stat = float(stat_dict[player]['tb_0'])/float(stat_dict[player]['tb_opp_0'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'3B=%3.1f' % (100*stat) + '%',
|
'3B=%3.1f' % (100*stat) + '%',
|
||||||
'3B_pf=%3.1f' % (100*stat) + '%',
|
'3B_pf=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['tb_0'], stat_dict[player]['tb_opp_0']),
|
'(%d/%d)' % (stat_dict[player]['tb_0'], stat_dict[player]['tb_opp_0']),
|
||||||
'% 3/4 Bet preflop/3rd'
|
'% 3/4 Bet preflop/3rd'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'3B=%3.1f' % (0) + '%',
|
'3B=%3.1f' % (0) + '%',
|
||||||
'3B_pf=%3.1f' % (0) + '%',
|
'3B_pf=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% 3/4 Bet preflop/3rd'
|
'% 3/4 Bet preflop/3rd'
|
||||||
)
|
)
|
||||||
|
@ -377,17 +377,17 @@ def WMsF(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['w_w_s_1'])/float(stat_dict[player]['saw_1'])
|
stat = float(stat_dict[player]['w_w_s_1'])/float(stat_dict[player]['saw_1'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'wf=%3.1f' % (100*stat) + '%',
|
'wf=%3.1f' % (100*stat) + '%',
|
||||||
'w_w_f=%3.1f' % (100*stat) + '%',
|
'w_w_f=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['w_w_s_1'], stat_dict[player]['saw_f']),
|
'(%d/%d)' % (stat_dict[player]['w_w_s_1'], stat_dict[player]['saw_f']),
|
||||||
'% won$/saw flop/4th'
|
'% won$/saw flop/4th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'wf=%3.1f' % (0) + '%',
|
'wf=%3.1f' % (0) + '%',
|
||||||
'w_w_f=%3.1f' % (0) + '%',
|
'w_w_f=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% won$/saw flop/4th'
|
'% won$/saw flop/4th'
|
||||||
)
|
)
|
||||||
|
@ -398,17 +398,17 @@ def a_freq1(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['aggr_1'])/float(stat_dict[player]['saw_f'])
|
stat = float(stat_dict[player]['aggr_1'])/float(stat_dict[player]['saw_f'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'a1=%3.1f' % (100*stat) + '%',
|
'a1=%3.1f' % (100*stat) + '%',
|
||||||
'a_fq_1=%3.1f' % (100*stat) + '%',
|
'a_fq_1=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['aggr_1'], stat_dict[player]['saw_f']),
|
'(%d/%d)' % (stat_dict[player]['aggr_1'], stat_dict[player]['saw_f']),
|
||||||
'Aggression Freq flop/4th'
|
'Aggression Freq flop/4th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'a1=%3.1f' % (0) + '%',
|
'a1=%3.1f' % (0) + '%',
|
||||||
'a_fq_1=%3.1f' % (0) + '%',
|
'a_fq_1=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'Aggression Freq flop/4th'
|
'Aggression Freq flop/4th'
|
||||||
)
|
)
|
||||||
|
@ -419,17 +419,17 @@ def a_freq2(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['aggr_2'])/float(stat_dict[player]['saw_2'])
|
stat = float(stat_dict[player]['aggr_2'])/float(stat_dict[player]['saw_2'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'a2=%3.1f' % (100*stat) + '%',
|
'a2=%3.1f' % (100*stat) + '%',
|
||||||
'a_fq_2=%3.1f' % (100*stat) + '%',
|
'a_fq_2=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['aggr_2'], stat_dict[player]['saw_2']),
|
'(%d/%d)' % (stat_dict[player]['aggr_2'], stat_dict[player]['saw_2']),
|
||||||
'Aggression Freq turn/5th'
|
'Aggression Freq turn/5th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'a2=%3.1f' % (0) + '%',
|
'a2=%3.1f' % (0) + '%',
|
||||||
'a_fq_2=%3.1f' % (0) + '%',
|
'a_fq_2=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'Aggression Freq turn/5th'
|
'Aggression Freq turn/5th'
|
||||||
)
|
)
|
||||||
|
@ -440,17 +440,17 @@ def a_freq3(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['aggr_3'])/float(stat_dict[player]['saw_3'])
|
stat = float(stat_dict[player]['aggr_3'])/float(stat_dict[player]['saw_3'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'a3=%3.1f' % (100*stat) + '%',
|
'a3=%3.1f' % (100*stat) + '%',
|
||||||
'a_fq_3=%3.1f' % (100*stat) + '%',
|
'a_fq_3=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['aggr_3'], stat_dict[player]['saw_3']),
|
'(%d/%d)' % (stat_dict[player]['aggr_3'], stat_dict[player]['saw_3']),
|
||||||
'Aggression Freq river/6th'
|
'Aggression Freq river/6th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'a3=%3.1f' % (0) + '%',
|
'a3=%3.1f' % (0) + '%',
|
||||||
'a_fq_3=%3.1f' % (0) + '%',
|
'a_fq_3=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'Aggression Freq river/6th'
|
'Aggression Freq river/6th'
|
||||||
)
|
)
|
||||||
|
@ -461,17 +461,17 @@ def a_freq4(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['aggr_4'])/float(stat_dict[player]['saw_4'])
|
stat = float(stat_dict[player]['aggr_4'])/float(stat_dict[player]['saw_4'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'a4=%3.1f' % (100*stat) + '%',
|
'a4=%3.1f' % (100*stat) + '%',
|
||||||
'a_fq_4=%3.1f' % (100*stat) + '%',
|
'a_fq_4=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['aggr_4'], stat_dict[player]['saw_4']),
|
'(%d/%d)' % (stat_dict[player]['aggr_4'], stat_dict[player]['saw_4']),
|
||||||
'Aggression Freq 7th'
|
'Aggression Freq 7th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'a4=%3.1f' % (0) + '%',
|
'a4=%3.1f' % (0) + '%',
|
||||||
'a_fq_4=%3.1f' % (0) + '%',
|
'a_fq_4=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'Aggression Freq 7th'
|
'Aggression Freq 7th'
|
||||||
)
|
)
|
||||||
|
@ -483,9 +483,9 @@ def a_freq_123(stat_dict, player):
|
||||||
stat = float( stat_dict[player]['aggr_1'] + stat_dict[player]['aggr_2'] + stat_dict[player]['aggr_3']
|
stat = float( stat_dict[player]['aggr_1'] + stat_dict[player]['aggr_2'] + stat_dict[player]['aggr_3']
|
||||||
) / float( stat_dict[player]['saw_1'] + stat_dict[player]['saw_2'] + stat_dict[player]['saw_3']);
|
) / float( stat_dict[player]['saw_1'] + stat_dict[player]['saw_2'] + stat_dict[player]['saw_3']);
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'afq=%3.1f' % (100*stat) + '%',
|
'afq=%3.1f' % (100*stat) + '%',
|
||||||
'postf_aggfq=%3.1f' % (100*stat) + '%',
|
'postf_aggfq=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % ( stat_dict[player]['aggr_1']
|
'(%d/%d)' % ( stat_dict[player]['aggr_1']
|
||||||
+ stat_dict[player]['aggr_2']
|
+ stat_dict[player]['aggr_2']
|
||||||
+ stat_dict[player]['aggr_3']
|
+ stat_dict[player]['aggr_3']
|
||||||
|
@ -497,9 +497,9 @@ def a_freq_123(stat_dict, player):
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%2.0f' % (0) + '%',
|
'%2.0f' % (0) + '%',
|
||||||
'a3=%2.0f' % (0) + '%',
|
'a3=%2.0f' % (0) + '%',
|
||||||
'a_fq_3=%2.0f' % (0) + '%',
|
'a_fq_3=%2.0f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'Post-Flop Aggression Freq'
|
'Post-Flop Aggression Freq'
|
||||||
)
|
)
|
||||||
|
@ -510,17 +510,17 @@ def cb1(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['cb_1'])/float(stat_dict[player]['cb_opp_1'])
|
stat = float(stat_dict[player]['cb_1'])/float(stat_dict[player]['cb_opp_1'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'cb1=%3.1f' % (100*stat) + '%',
|
'cb1=%3.1f' % (100*stat) + '%',
|
||||||
'cb_1=%3.1f' % (100*stat) + '%',
|
'cb_1=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['cb_1'], stat_dict[player]['cb_opp_1']),
|
'(%d/%d)' % (stat_dict[player]['cb_1'], stat_dict[player]['cb_opp_1']),
|
||||||
'% continuation bet flop/4th'
|
'% continuation bet flop/4th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'cb1=%3.1f' % (0) + '%',
|
'cb1=%3.1f' % (0) + '%',
|
||||||
'cb_1=%3.1f' % (0) + '%',
|
'cb_1=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% continuation bet flop/4th'
|
'% continuation bet flop/4th'
|
||||||
)
|
)
|
||||||
|
@ -531,17 +531,17 @@ def cb2(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['cb_2'])/float(stat_dict[player]['cb_opp_2'])
|
stat = float(stat_dict[player]['cb_2'])/float(stat_dict[player]['cb_opp_2'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'cb2=%3.1f' % (100*stat) + '%',
|
'cb2=%3.1f' % (100*stat) + '%',
|
||||||
'cb_2=%3.1f' % (100*stat) + '%',
|
'cb_2=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['cb_2'], stat_dict[player]['cb_opp_2']),
|
'(%d/%d)' % (stat_dict[player]['cb_2'], stat_dict[player]['cb_opp_2']),
|
||||||
'% continuation bet turn/5th'
|
'% continuation bet turn/5th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'cb2=%3.1f' % (0) + '%',
|
'cb2=%3.1f' % (0) + '%',
|
||||||
'cb_2=%3.1f' % (0) + '%',
|
'cb_2=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% continuation bet turn/5th'
|
'% continuation bet turn/5th'
|
||||||
)
|
)
|
||||||
|
@ -552,17 +552,17 @@ def cb3(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['cb_3'])/float(stat_dict[player]['cb_opp_3'])
|
stat = float(stat_dict[player]['cb_3'])/float(stat_dict[player]['cb_opp_3'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'cb3=%3.1f' % (100*stat) + '%',
|
'cb3=%3.1f' % (100*stat) + '%',
|
||||||
'cb_3=%3.1f' % (100*stat) + '%',
|
'cb_3=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['cb_3'], stat_dict[player]['cb_opp_3']),
|
'(%d/%d)' % (stat_dict[player]['cb_3'], stat_dict[player]['cb_opp_3']),
|
||||||
'% continuation bet river/6th'
|
'% continuation bet river/6th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'cb3=%3.1f' % (0) + '%',
|
'cb3=%3.1f' % (0) + '%',
|
||||||
'cb_3=%3.1f' % (0) + '%',
|
'cb_3=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% continuation bet river/6th'
|
'% continuation bet river/6th'
|
||||||
)
|
)
|
||||||
|
@ -573,17 +573,17 @@ def cb4(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['cb_4'])/float(stat_dict[player]['cb_opp_4'])
|
stat = float(stat_dict[player]['cb_4'])/float(stat_dict[player]['cb_opp_4'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'cb4=%3.1f' % (100*stat) + '%',
|
'cb4=%3.1f' % (100*stat) + '%',
|
||||||
'cb_4=%3.1f' % (100*stat) + '%',
|
'cb_4=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['cb_4'], stat_dict[player]['cb_opp_4']),
|
'(%d/%d)' % (stat_dict[player]['cb_4'], stat_dict[player]['cb_opp_4']),
|
||||||
'% continuation bet 7th'
|
'% continuation bet 7th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'cb4=%3.1f' % (0) + '%',
|
'cb4=%3.1f' % (0) + '%',
|
||||||
'cb_4=%3.1f' % (0) + '%',
|
'cb_4=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% continuation bet 7th'
|
'% continuation bet 7th'
|
||||||
)
|
)
|
||||||
|
@ -594,17 +594,17 @@ def ffreq1(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['f_freq_1'])/float(stat_dict[player]['was_raised_1'])
|
stat = float(stat_dict[player]['f_freq_1'])/float(stat_dict[player]['was_raised_1'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'ff1=%3.1f' % (100*stat) + '%',
|
'ff1=%3.1f' % (100*stat) + '%',
|
||||||
'ff_1=%3.1f' % (100*stat) + '%',
|
'ff_1=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['f_freq_1'], stat_dict[player]['was_raised_1']),
|
'(%d/%d)' % (stat_dict[player]['f_freq_1'], stat_dict[player]['was_raised_1']),
|
||||||
'% fold frequency flop/4th'
|
'% fold frequency flop/4th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'ff1=%3.1f' % (0) + '%',
|
'ff1=%3.1f' % (0) + '%',
|
||||||
'ff_1=%3.1f' % (0) + '%',
|
'ff_1=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% fold frequency flop/4th'
|
'% fold frequency flop/4th'
|
||||||
)
|
)
|
||||||
|
@ -615,17 +615,17 @@ def ffreq2(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['f_freq_2'])/float(stat_dict[player]['was_raised_2'])
|
stat = float(stat_dict[player]['f_freq_2'])/float(stat_dict[player]['was_raised_2'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'ff2=%3.1f' % (100*stat) + '%',
|
'ff2=%3.1f' % (100*stat) + '%',
|
||||||
'ff_2=%3.1f' % (100*stat) + '%',
|
'ff_2=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['f_freq_2'], stat_dict[player]['was_raised_2']),
|
'(%d/%d)' % (stat_dict[player]['f_freq_2'], stat_dict[player]['was_raised_2']),
|
||||||
'% fold frequency turn/5th'
|
'% fold frequency turn/5th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'ff2=%3.1f' % (0) + '%',
|
'ff2=%3.1f' % (0) + '%',
|
||||||
'ff_2=%3.1f' % (0) + '%',
|
'ff_2=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% fold frequency turn/5th'
|
'% fold frequency turn/5th'
|
||||||
)
|
)
|
||||||
|
@ -636,17 +636,17 @@ def ffreq3(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['f_freq_3'])/float(stat_dict[player]['was_raised_3'])
|
stat = float(stat_dict[player]['f_freq_3'])/float(stat_dict[player]['was_raised_3'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'ff3=%3.1f' % (100*stat) + '%',
|
'ff3=%3.1f' % (100*stat) + '%',
|
||||||
'ff_3=%3.1f' % (100*stat) + '%',
|
'ff_3=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['f_freq_3'], stat_dict[player]['was_raised_3']),
|
'(%d/%d)' % (stat_dict[player]['f_freq_3'], stat_dict[player]['was_raised_3']),
|
||||||
'% fold frequency river/6th'
|
'% fold frequency river/6th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'ff3=%3.1f' % (0) + '%',
|
'ff3=%3.1f' % (0) + '%',
|
||||||
'ff_3=%3.1f' % (0) + '%',
|
'ff_3=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% fold frequency river/6th'
|
'% fold frequency river/6th'
|
||||||
)
|
)
|
||||||
|
@ -657,17 +657,17 @@ def ffreq4(stat_dict, player):
|
||||||
try:
|
try:
|
||||||
stat = float(stat_dict[player]['f_freq_4'])/float(stat_dict[player]['was_raised_4'])
|
stat = float(stat_dict[player]['f_freq_4'])/float(stat_dict[player]['was_raised_4'])
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (100*stat) + '%',
|
'%3.1f' % (100*stat) + '%',
|
||||||
'ff4=%3.1f' % (100*stat) + '%',
|
'ff4=%3.1f' % (100*stat) + '%',
|
||||||
'ff_4=%3.1f' % (100*stat) + '%',
|
'ff_4=%3.1f' % (100*stat) + '%',
|
||||||
'(%d/%d)' % (stat_dict[player]['f_freq_4'], stat_dict[player]['was_raised_4']),
|
'(%d/%d)' % (stat_dict[player]['f_freq_4'], stat_dict[player]['was_raised_4']),
|
||||||
'% fold frequency 7th'
|
'% fold frequency 7th'
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
return (stat,
|
return (stat,
|
||||||
'%3.1f' % (0) + '%',
|
'%3.1f' % (0) + '%',
|
||||||
'ff4=%3.1f' % (0) + '%',
|
'ff4=%3.1f' % (0) + '%',
|
||||||
'ff_4=%3.1f' % (0) + '%',
|
'ff_4=%3.1f' % (0) + '%',
|
||||||
'(%d/%d)' % (0, 0),
|
'(%d/%d)' % (0, 0),
|
||||||
'% fold frequency 7th'
|
'% fold frequency 7th'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user