Skip to content
This repository was archived by the owner on Jul 15, 2019. It is now read-only.

Commit 4e1ec20

Browse files
committed
added plots for graphical python examples
1 parent d6ddd5e commit 4e1ec20

File tree

5 files changed

+20
-1
lines changed

5 files changed

+20
-1
lines changed

fig/statistical_testing/hsic.pdf

158 KB
Binary file not shown.
207 KB
Binary file not shown.
182 KB
Binary file not shown.

parts/algorithms/statistical_tests-hsic.tex

+7-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,10 @@ \subsubsection{Gamma}
6767

6868
Then, any threshold and p-value can be computed using the gamma distribution in expression \ref{eqn:hsic_gamma}. Computational costs are in $\mathcal{O}(m^2)$, similar for space.
6969

70-
To use that method for testing, use \texttt{set\_null\_approximation\_method(HSIC\_GAMMA)}, to be found in \shogunclass{CHSIC}.
70+
To use that method for testing, use \texttt{set\_null\_approximation\_method(HSIC\_GAMMA)}, to be found in \shogunclass{CHSIC}.
71+
72+
\subsubsection{Examples}
73+
\begin{figure}\centering
74+
\includegraphics{fig/statistical_testing/hsic}
75+
\caption{Screenshot of graphical python example for HSIC.}
76+
\end{figure}

parts/algorithms/statistical_tests-mmd.tex

+13
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,16 @@ \subsection{Precomputed Kernel Matrices for Quadratic Time MMD}
120120
For all MMD-based two-sample-tests, elements of kernel matrices of sample data have to be used. By default, all computations are done \emph{in-place} when possible, which means that the underlying kernel is evaluated on the fly (There are exceptions, when the matrix has to be stored, for example in order so solve Eigenvalue problems). However, for the quadratic time MMD, this may be inefficient when statistics are computed multiple times -- as in bootstrapping. Therefore, it is possible to initialize \shogunclass{CQuadraticTimeMMD} with a pre-computed \shogunclass{CCusotmKernel}. This kernel may be computed from any other kernel by simply passing the latter to the constructor of \shogunclass{CCusotmKernel}. This should be done whenever the kernel matrix fits into memory; it greatly improves performance. In bootstrapping, the kernel matrix only has to be permuted instead of being re-computed in every iteration. But there is also a (small) advantage for all other methods since \shogun{} computes kernel matrices in multiple threads.
121121

122122
In contrast, \shogunclass{CLinearTimeMMD} should not be used with \shogunclass{CCusotmKernel}s since it does not even need all elements -- so pointless computations would be made. Also, \shogunclass{CLinearTimeMMD} might be changed to work on stream data only in the future.
123+
124+
\subsubsection{Examples}
125+
There is a graphical python example which plots example data, alternative and null-distributions.
126+
127+
\begin{figure}\centering
128+
\includegraphics{fig/statistical_testing/linear_time_mmd}
129+
\caption{Screenshot of graphical python example for linear time MMD.}
130+
\end{figure}
131+
132+
\begin{figure}\centering
133+
\includegraphics{fig/statistical_testing/quadratic_time_mmd}
134+
\caption{Screenshot of graphical python example for quadratic time MMD.}
135+
\end{figure}

0 commit comments

Comments
 (0)