Skip to content

Commit

Permalink
Merge pull request #47 from kashefy/fix_ref
Browse files Browse the repository at this point in the history
Fix references in PCA
  • Loading branch information
kashefy authored May 4, 2022
2 parents 5a69a5c + 4e87121 commit 6bffbac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion notes/01_pca/2_apply-pca.tex
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ \subsubsection{A note on implementation}
\notesonly{
The reason for the difference in sign between the eigenvector's you would get via \textit{eig} and the eigenvector you would get via \textit{SVD}\footnote{Python's scikit-learn package uses SVD for its PCA implementation.}, is that SVD, in practice, may arbitrarily flip the direction of the eigenevectors.
Possible reasons for the sign ambiguity according to \ref{bro2008resolving}:
Possible reasons for the sign ambiguity according to \cite{bro2008resolving}:
\begin{enumerate}
\item It's a mechanism in the \textit{SVD} implementation (there's more than one \textit{SVD} implementation) to mitigate numerical instabilities,
\item Due to centering of the data,
Expand Down
3 changes: 2 additions & 1 deletion notes/01_pca/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ handout: $(projname).handout.tex $(projname).tex
# Repeat compilation for the references to show up correctly
notes: $(projname).notes.tex $(projname).tex
$(compile) $(projname).notes.tex
# bibtex $(projname).notes
bibtex $(projname).notes
$(compile) --interaction=batchmode $(projname).notes.tex
$(compile) --interaction=batchmode $(projname).notes.tex
# $(compile) --interaction=batchmode $(projname).notes.tex
mv $(projname).notes.pdf $(targetname).notes.pdf
Expand Down
14 changes: 8 additions & 6 deletions notes/01_pca/tutorial.tex
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,14 @@

\clearpage

%\section{References}
%\begin{frame}[allowframebreaks] \frametitle{References}
%\scriptsize
%\bibliographystyle{plainnat}
%\bibliography{bibliography}
%\end{frame}
\mode<article>{
\section{References}
\begin{frame}[allowframebreaks] \frametitle{References}
\scriptsize
\bibliographystyle{plainnat}
\bibliography{bibliography}
\end{frame}
}

\end{rightcolumn}
\end{paracol}
Expand Down

0 comments on commit 6bffbac

Please sign in to comment.