This adds topn stats to t-predict and cleans up previous mess:
moved predict code out of gtp.c to t-predict/predict.c
changed engine best_move() interface so it's useful for both gogui and t-predict, and implement it for engines that didn't have it (replay, patternplay iirc)
pass t-predict output as gtp response instead of digging pachi's log.
also added average values and stats by move number which can be interesting in some situations.
Diagrams are pretty nice, for example this is what large patterns look like in t-predict:
Topn stats: (Games: 331)
Predicted : 14568/65800 moves (22%) ****************
in best 2: 21721/65800 moves (33%) ************************
in best 3: 26188/65800 moves (39%) *****************************
in best 4: 29302/65800 moves (44%) *********************************
in best 5: 31706/65800 moves (48%) ************************************
in best 6: 33692/65800 moves (51%) **************************************
in best 7: 35339/65800 moves (53%) ***************************************
in best 8: 36738/65800 moves (55%) *****************************************
in best 9: 38008/65800 moves (57%) ******************************************
in best 10: 39120/65800 moves (59%) ********************************************
in best 11: 40305/65800 moves (61%) *********************************************
in best 12: 41326/65800 moves (62%) **********************************************
in best 13: 42175/65800 moves (64%) ************************************************
in best 14: 43010/65800 moves (65%) ************************************************
in best 15: 43829/65800 moves (66%) *************************************************
in best 16: 44622/65800 moves (67%) **************************************************
in best 17: 45344/65800 moves (68%) ***************************************************
in best 18: 46011/65800 moves (69%) ***************************************************
in best 19: 46669/65800 moves (70%) ****************************************************
in best 20: 47289/65800 moves (71%) *****************************************************
Detlef's dcnn:
Topn stats: (Games: 331)
Predicted : 35308/65800 moves (53%) ***************************************
in best 2: 45888/65800 moves (69%) ***************************************************
in best 3: 51051/65800 moves (77%) *********************************************************
in best 4: 54330/65800 moves (82%) *************************************************************
in best 5: 56358/65800 moves (85%) ***************************************************************
in best 6: 57845/65800 moves (87%) *****************************************************************
in best 7: 59038/65800 moves (89%) ******************************************************************
in best 8: 59946/65800 moves (91%) ********************************************************************
in best 9: 60684/65800 moves (92%) *********************************************************************
in best 10: 61311/65800 moves (93%) *********************************************************************
in best 11: 61820/65800 moves (93%) *********************************************************************
in best 12: 62258/65800 moves (94%) **********************************************************************
in best 13: 62618/65800 moves (95%) ***********************************************************************
in best 14: 62947/65800 moves (95%) ***********************************************************************
in best 15: 63243/65800 moves (96%) ************************************************************************
in best 16: 63468/65800 moves (96%) ************************************************************************
in best 17: 63683/65800 moves (96%) ************************************************************************
in best 18: 63872/65800 moves (97%) ************************************************************************
in best 19: 64030/65800 moves (97%) ************************************************************************
in best 20: 64181/65800 moves (97%) ************************************************************************
And moggy =)
Topn stats: (Games: 331)
Predicted : 16028/65800 moves (24%) ******************
in best 2: 23514/65800 moves (35%) **************************
in best 3: 27415/65800 moves (41%) ******************************
in best 4: 29259/65800 moves (44%) *********************************
in best 5: 30083/65800 moves (45%) *********************************
in best 6: 30378/65800 moves (46%) **********************************
in best 7: 30527/65800 moves (46%) **********************************
in best 8: 30653/65800 moves (46%) **********************************
in best 9: 30744/65800 moves (46%) **********************************
in best 10: 30841/65800 moves (46%) **********************************
in best 11: 30913/65800 moves (46%) **********************************
in best 12: 30980/65800 moves (47%) ***********************************
This adds topn stats to t-predict and cleans up previous mess:
Diagrams are pretty nice, for example this is what large patterns look like in t-predict:
Detlef's dcnn:
And moggy =)