From 5ed5b6939d67fa872399b165847298cb74e233a2 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 10 Mar 2010 00:27:04 +0100 Subject: [PATCH] tex: Add strength PCA dimension plot --- tex/gostyle.tex | 11 ++++++++++- tex/makefile | 7 +++++-- tex/strength-pca.data | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 tex/strength-pca.data diff --git a/tex/gostyle.tex b/tex/gostyle.tex index bb1d6ad..6f6490a 100644 --- a/tex/gostyle.tex +++ b/tex/gostyle.tex @@ -31,6 +31,7 @@ % will default to the driver specified in the system graphics.cfg if no % driver is specified. % \usepackage[dvips]{graphicx} + \usepackage{graphicx} % declare the path(s) where your graphic files are % \graphicspath{{../eps/}} % and their extensions so you won't have to specify these with @@ -695,6 +696,13 @@ The neuron network classifier is using the libfann C library. \cite{TODO} \section{Strength Estimator} +\begin{figure*}[!t] +\centering +\includegraphics[width=7in]{strength-pca} +\caption{PCA of by-strength vectors} +\label{fig:strength_pca} +\end{figure*} + First, we have used our framework to analyse correlations of pattern vectors and playing strength. Like in other competitively played board games, Go players receive real-world rating based on tournament games, and rank based on their @@ -724,7 +732,8 @@ rank correspondence in the first PCA dimension\footnote{The eigenvalue of the second dimension was four orders of magnitude smaller, with no discernable structure revealed within the lower-order eigenvectors.} (chi-square test TODO). -(Figure TODO.) Using the eigenvector position directly for classification +(Figure \ref{fig:strength_pca}.) +Using the eigenvector position directly for classification of players within the test group yields MSE TODO, thus providing reasonably satisfying accuracy. diff --git a/tex/makefile b/tex/makefile index 9bdd9a6..6d354f0 100644 --- a/tex/makefile +++ b/tex/makefile @@ -1,12 +1,15 @@ -gostyle.dvi: gostyle.tex gostyle.bib makefile +gostyle.dvi: gostyle.tex gostyle.bib strength-pca.eps makefile rm -f gostyle.bbl latex gostyle && bibtex gostyle && latex gostyle && latex gostyle gostyle.pdf: gostyle.dvi dvipdf gostyle.dvi gostyle.pdf +strength-pca.eps: strength-pca.data + echo 'set term postscript eps enhanced "Helvetica" 18 size 7,2; set output "'$>'"; set xtics -4 2; set xlabel "rank (-d, +k)" ; set ylabel "first dim." ; plot "'$<'" using 2:3 notitle pointtype 2' | gnuplot + clean: - rm -f gostyle.pdf gostyle.dvi gostyle.bbl gostyle.aux gostyle.log gostyle.blg + rm -f gostyle.pdf gostyle.dvi gostyle.bbl gostyle.aux gostyle.log gostyle.blg strength-pca.eps dvi: gostyle.dvi pdf: gostyle.pdf diff --git a/tex/strength-pca.data b/tex/strength-pca.data new file mode 100644 index 0000000..e86adf6 --- /dev/null +++ b/tex/strength-pca.data @@ -0,0 +1,34 @@ +d04 -4 1.0 +d03 -3 0.704588209339 +d02 -2 0.828040950868 +d01 -1 0.955823053313 +k01 01 0.691565135525 +k02 02 0.526583748596 +k03 03 0.541892827263 +k04 04 0.414798267032 +k05 05 0.381620472074 +k06 06 0.404828506661 +k07 07 0.400982293159 +k08 08 0.276650116886 +k09 09 0.311405620896 +k10 10 0.146580042619 +k11 11 0.152275532617 +k12 12 0.12479695912 +k13 13 0.055124030654 +k14 14 0.0257837319076 +k15 15 -0.00749369736499 +k16 16 -0.0692043773635 +k17 17 -0.232076754259 +k18 18 -0.0728848940143 +k19 19 -0.124660783982 +k20 20 -0.189728520936 +k21 21 -0.37076262938 +k22 22 -0.261877441828 +k23 23 -0.379954340207 +k24 24 -0.544782394026 +k25 25 -0.3264022596 +k26 26 -0.510319184697 +k27 27 -0.870439721942 +k28 28 -0.822330562106 +k29 29 -1.0 +k30 30 -0.905915534731 -- 2.11.4.GIT