Poker-AI.org
http://poker-ai.org/phpbb/

Should I get stats from PokerTracker or HolemManager?
http://poker-ai.org/phpbb/viewtopic.php?f=24&t=2599
Page 1 of 2

Author:  Seikez [ Mon Sep 23, 2013 11:18 am ]
Post subject:  Should I get stats from PokerTracker or HolemManager?

Hi guys!

There are some old threads about this on different sites, but I need some up to date advice.

Should I use PokerTracker or HoldemManager to get stats for players in my bot?

If I choose one of these apps, is there anything important in the other app that I will miss?

Author:  shadehs [ Mon Sep 23, 2013 8:04 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

I actually get my stats from holdem manager 1, but Open Holdem guys uses PT3 because the schema is known and you can reconstruct all the stats easily.
With HM1 the most of stats are easy to reconstruct but some aren't. However, they are optimized.
PT3 instead is old and as i heard, some queries need a lot of time to be done.
With HM2 is impossible to extract stats, because they doesn't store them in the DB but in files, for "performance issues", they said.
And PT4 i didn't try it, but if it could be possible to extract all stats as it was for PT3, i would try it.

Author:  shalako [ Tue Sep 24, 2013 3:10 am ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

I didnt know you could do this. So I can extract PT4 data for my bot? I am using an internal stats program I wrote but using PT4 would be way better. Is it slow or ?

Author:  shadehs [ Tue Sep 24, 2013 7:02 am ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

I think that all bots use stats from PT or HM.
The speed is ok, also because you need to retrieve stats once per hand, or once in a while and on player change.

Author:  Seikez [ Tue Sep 24, 2013 7:25 am ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

shadehs wrote:
With HM2 is impossible to extract stats, because they doesn't store them in the DB but in files, for "performance issues", they said.

I didn't know that HM2 had changed to a db-format that makes it impossible to extract statistics. If this is true, and I have no reason to doubt it, HM2 is out of the question. Thanks shadehs, for this very important information!

Can someone please confirm that it is possible to get statistics from PT4?

Author:  iKNOWpoker [ Tue Sep 24, 2013 12:02 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

Some 3rd party programs like TableScan Turbo are able to use HM2- and PT4-stats. So it must be possible somehow. But I haven't looked into this and don't know how easy or complicated it is.

Author:  ibot [ Tue Sep 24, 2013 1:42 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

Considering PT4 has a 'Database Management' guide, it's likely you'll be able to access the database.
There's also a free trial, so why not try and see?

Author:  proud2bBot [ Tue Sep 24, 2013 8:22 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

It works with both, holdem manager 2 and poker tracker 4

Author:  shadehs [ Tue Sep 24, 2013 10:56 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

proud2bBot wrote:
It works with both, holdem manager 2 and poker tracker 4


The last thread that i read about SQL queries on HM2 was this:
http://forums.holdemmanager.com/general ... stats.html

I don't know if they implemented an API or something similar, do you have more recent news ?

Author:  shalako [ Wed Sep 25, 2013 3:51 am ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

PT4 uses a PostgreSQL Server that should be easy to setup. I should have done this long ago.

Author:  Seikez [ Wed Sep 25, 2013 8:31 am ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

So, the state today is that it works with PT4 and probably will work with HM2 sometime in the future when they release their API.

A tip for everyone: I read somewhere that you can get the SQL for a query from HM1 and PT3 logs. This must obviously be a big help, because you don't need to understand SQL and the the db-schema in the same way as when you write the SQL yourself. I would guess you can do this also in the latest versions of the programs.


Another question on this subject:
How do you get up to date statistics for all opponents on a table your bot is sitting down at, even if you haven't played that particular opp before?
Do you have to pay for a hand history subscription with online updates (like hhmailer 5-min option), or is there some other way to do it without paying?

Author:  shadehs [ Wed Sep 25, 2013 11:43 am ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

Seikez wrote:
Another question on this subject:
How do you get up to date statistics for all opponents on a table your bot is sitting down at, even if you haven't played that particular opp before?
Do you have to pay for a hand history subscription with online updates (like hhmailer 5-min option), or is there some other way to do it without paying?

If you need the stats before actually playing with your opponent and don't want to pay, the only alternative is to use a datamining software.
Time ago i bought some HH from pokertableratings, and it was cool to have millions of hands in the database. However it was before the black friday. Didn't buy anithing else since that time.

Author:  HontoNiBaka [ Wed Sep 25, 2013 10:01 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

iKNOWpoker wrote:
Some 3rd party programs like TableScan Turbo are able to use HM2- and PT4-stats. So it must be possible somehow. But I haven't looked into this and don't know how easy or complicated it is.


Its possible to get the stats, I got the VPIP at least, but its a waste of time.

The developers of big 3rd party programs either spend a lot of time with it, which makes sense, since it will increase sales a lot, or they get tutorials from the hm2 guys.

An api was promised more tha a year ago, it will probably never come.

Author:  shadehs [ Thu Sep 26, 2013 7:06 am ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

HontoNiBaka wrote:
An api was promised more tha a year ago, it will probably never come.


That's also my opinion, and that's why i think i trashed my money when buying HM2.
Shalako, if you are working on queries from PT4, maybe you want to share some of them and what are the performance on a large sample size ?

Author:  ibot [ Thu Sep 26, 2013 12:47 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

If you can get your hands on PT3, I think that could be the best deal.
From this forum post, it sounds like they've made some changes to the layout from PT3!

[EDIT]... and no longer provide any documentation about the DB, unlike PT3.
Also, I can provide some sample queries in Java if you'd be interested.

Author:  Seikez [ Fri Sep 27, 2013 7:42 am ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

ibot wrote:
... and no longer provide any documentation about the DB, unlike PT3.

Can't you get info on the db-schema from PostgreSQL in some way? (I have never worked with PostgreSQL, but it would be strange if this wasn't possible either from PostgreSQL directly, or from some free tool)

Quote:
Also, I can provide some sample queries in Java if you'd be interested.

Of course we are interested. All information is a help.

Author:  ibot [ Fri Sep 27, 2013 12:18 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

Seikez wrote:
Can't you get info on the db-schema from PostgreSQL in some way? (I have never worked with PostgreSQL, but it would be strange if this wasn't possible either from PostgreSQL directly, or from some free tool)

It's possible to get the info on the db-schema, however it's a lot of abbreviations etc.. so not very easy to understand.
It's likely it'll be similar to the PT3 db and abbreviations but who knows.

This is an example for getting Preflop stats.
Code:
public static double[] getPreflopStats(String name, Connection con) {
         
        double[] stats = new double[6];
         
        int id_player = 1;
         
        PreparedStatement pst = null;
        ResultSet rs = null;
         
        try {
             
            // Get player ID
            String stm = "SELECT id_player FROM player WHERE player_name = ?;";
            pst = con.prepareStatement(stm);
            pst.setString(1, name);
            rs = pst.executeQuery();
 
            while (rs.next()) {
                id_player = rs.getInt(1);
            }
               
            stm = "SELECT "+
                       "( SUM(cnt_p_raise) / ( 1.0 + SUM(cnt_p_raise) + SUM(cnt_p_call) + SUM(cnt_p_fold) ) ), "+ //AFq
                       "( SUM(cnt_p_raise)*1.0 / SUM(cnt_hands) ), "+ //PFR
                       "( SUM(cnt_vpip)*1.0 / SUM(cnt_hands) ), "+ //VPIP
                       "( SUM(cnt_p_first_raise) / ( 1.0 + SUM(cnt_p_open_opp)) )  , "+//RAISEFIRST
                       "( SUM(cnt_p_3bet) / (1.0 + SUM(cnt_p_3bet_opp)) ), "+ //3BET
                       "SUM(cnt_hands) "+
                       "FROM holdem_cache WHERE id_player = ?;";
            pst = con.prepareStatement(stm);
            pst.setInt(1, id_player);
            rs = pst.executeQuery();
             
            while (rs.next()) {
                for (int i=0; i<stats.length; i++) {
                    stats[i] = rs.getDouble(i+1);   
                }
            }
             <more code here..>
        }
       
        return stats;
    }

Author:  shadehs [ Fri Sep 27, 2013 2:36 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

IBot, did you use PT3 in the past?
Are PT4 queries execution performance better than PT3 queries ?

Author:  ibot [ Fri Sep 27, 2013 2:48 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

shadehs wrote:
IBot, did you use PT3 in the past?
Are PT4 queries execution performance better than PT3 queries ?

The above query is for PT3, that's what I use.
I couldn't tell you if PT4 is faster, i'm sure someone will know - maybe ask/search on the PokerTracker forums.

Author:  proud2bBot [ Fri Sep 27, 2013 6:27 pm ]
Post subject:  Re: Should I get stats from PokerTracker or HolemManager?

shadehs wrote:
proud2bBot wrote:
It works with both, holdem manager 2 and poker tracker 4


The last thread that i read about SQL queries on HM2 was this:
http://forums.holdemmanager.com/general ... stats.html

I don't know if they implemented an API or something similar, do you have more recent news ?


Ahh, sorry, I forgot: I used PT3 and HM1 with SQL in the past and that was working. PT4 I'm using now and its working too (you can easily see the schema in the DB, so I don't get why people complain about not having the schema...). I also used HM2 but scraped the stats, which I skipped later in favor of PT4.
If you are starting over, I'd always use PT4 as you can get everything out, its quite easy and fast. Choosing PT3 just for the sake of the documentation is weird, as you can see the schema anyway and you'll have longer support for PT4 for sure...

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/