From c274dcfe9d09f54686b4c6b1d86520f21d55944a Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 11 Mar 2010 23:53:56 +0100 Subject: [PATCH] README: Random PCA-related recipes --- README | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README b/README index 0746b45..41c1a03 100644 --- a/README +++ b/README @@ -78,3 +78,22 @@ PREPARING THE DATASET: 8. pat_files/ now contains the dataset that can be analyzed by other tools in the suite. + + +--------- +RANDOM RECIPES: + +When investigating patterns influencing the PCA generated by pca.py, +this may be useful: + +- Look at the dimension-pattern weights: + + sed -n 's/^1 \([0-9]*\) \(.*\)/\2 \1/p' pca.dimdata | sort -nr + +- Look at the most prominent players of a given pattern: + + grep s:17389 ../pdb-cont/pat_files/ -r | sort -n -k 2 + +- Look for given spatial pattern in actual games: + + grep -F Naiwei /srv/mm/go/GoGoD-2008-Winter/GoGoD/GameList.txt | cut -d ' ' -f 1 | while read sgf; do ./sgf2gtp.pl /srv/mm/go/GoGoD-2008-Winter/Database/*/$sgf.sgf | ./zzgo -e patternscan -d 3 2>&1; done | less # /s:1234 -- 2.11.4.GIT