M value wrong calculation

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

M value wrong calculation

Postby Hugis » Wed Mar 10, 2010 11:02 pm

I using the tournament hud in AP and it seems that the M value is only taking into account for it calculation the BB value and the antes value but not the SB value.
What can be the problem?
Hugis
 
Posts: 5
Joined: Wed Apr 01, 2009 9:15 am

Re: M value wrong calculation

Postby kraada » Thu Mar 11, 2010 10:00 am

That's odd - can you attach some hand histories from a tournament that had this problem to a support ticket so that we can investigate for you?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: M value wrong calculation

Postby Hugis » Thu Mar 11, 2010 11:28 am

Ticket just posted
Hugis
 
Posts: 5
Joined: Wed Apr 01, 2009 9:15 am

Re: M value wrong calculation

Postby kraada » Thu Mar 11, 2010 12:43 pm

Thanks we appreciate it.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: M value wrong calculation

Postby Predatech » Sat Mar 13, 2010 5:27 am

I have also experienced this problem.
If I mouse over the M stat, it shows Value: nn,n (which is what I see on the screen) and This Session: nn.n (which is actually the correct value).
The number in Value is way off.

For Instance,
at 60/120 Blinds

a Player with a stack of 2945 shows:
Value: 23.2
This Session: 16.4

a Player with a stack of 6400 shows:
Value: 29.8
This Session: 35.6

I don't see any correlation in the values to specific SB, BB or Ante amounts, but it changes when a player wins or loses a pot, which makes me think that it has to do with the previous Stack Size calculations.
Predatech
 
Posts: 3
Joined: Sat Mar 13, 2010 4:44 am

Re: M value wrong calculation

Postby kraada » Sat Mar 13, 2010 9:51 am

This is due to the new caching mechanism causing problems for these stats - we are currently working on a more elegant solution. For now only the Session value will be accurate for the stat.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: M value wrong calculation

Postby Predatech » Sat Mar 13, 2010 7:44 pm

The "This Session" value is the one I want. I thought this was always the one being displayed for the Stat.
It now seems to be using the "Value" for display.
How to I make it shows the "This Session" instead?
Predatech
 
Posts: 3
Joined: Sat Mar 13, 2010 4:44 am

Re: M value wrong calculation

Postby Predatech » Sat Mar 13, 2010 11:18 pm

Further Observations:

It appears that the val_stack_size is being calculated incorrectly.

Where it's formula is
sum(if[ localtimestamp - interval '30 seconds' < tourney_holdem_hand_summary.date_imported, tourney_holdem_hand_player_detail.amt_before + tourney_holdem_hand_player_statistics.amt_won, 0])

It seems that instead of "tourney_holdem_hand_player_statistics.amt_won" that it is adding the size of the current stack, thus Val_stack_size continues to increase until the player has a zero stack.

This does not happen for the Hero player
Predatech
 
Posts: 3
Joined: Sat Mar 13, 2010 4:44 am

Re: M value wrong calculation

Postby kraada » Sun Mar 14, 2010 8:46 am

Right the problem is that now the cache is updated after each hand. Since the cache is updated after each hand, the results from past hands accumulate - and will continue to accumulate.

The cache change was a huge performance increase, and so we are looking into ways to build M differently so that we can still have the statistic while maintaining our new caching mechanism.

The "current session" section at the moment does not use the cache and so is not restricted the same way as above. Unfortunately there is no way at this time to show session statistics other than in the popup.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests