Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
1 result

Target

Select target project
  • ckaufmann/install-python-tensorflow-gym
1 result
Select Git revision
  • master
1 result
Show changes
Commits on Source (2)
#%% imports
import pandas as pd
import seaborn as sns
from sklearn.datasets import load_iris
# %% load data
data = pd.concat(load_iris(return_X_y=True, as_frame=True), axis='columns')
# %% scatter plot matrix
sns.pairplot(data, hue='target', plot_kws=dict(alpha=0.8))
images/scatterplot-matrix.png

261 KiB

No preview for this file type
...@@ -92,7 +92,7 @@ and install Mambaforge. We recommend to leave the default settings especially to ...@@ -92,7 +92,7 @@ and install Mambaforge. We recommend to leave the default settings especially to
\begin{minipage}{0.37\linewidth} \begin{minipage}{0.37\linewidth}
\includegraphics[width=\linewidth]{images/mambaforge-start-menu-prompt} \includegraphics[width=\linewidth]{images/mambaforge-start-menu-prompt}
\end{minipage}% \end{minipage}%
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize] \begin{lstlisting}[gobble=2]
#*\color{gray}(base) C:\textbackslash Users\textbackslash john>* #*\color{gray}(base) C:\textbackslash Users\textbackslash john>*
\end{lstlisting} \end{lstlisting}
Now we are ready to install the packages we need. Now we are ready to install the packages we need.
...@@ -100,6 +100,7 @@ Now we are ready to install the packages we need. ...@@ -100,6 +100,7 @@ Now we are ready to install the packages we need.
\section{Packages} \section{Packages}
\label{sec:packages}
Let's create a new environment called \textit{weai} and add the packages we need to it (copy \& paste black text lines): Let's create a new environment called \textit{weai} and add the packages we need to it (copy \& paste black text lines):
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize] \begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize]
...@@ -109,12 +110,12 @@ Let's create a new environment called \textit{weai} and add the packages we need ...@@ -109,12 +110,12 @@ Let's create a new environment called \textit{weai} and add the packages we need
pyarrow pandas pyarrow pandas
\end{lstlisting} \end{lstlisting}
You will get a list of packages and can confirm with \keyenter. Installation takes a while. Since \lstinline|tensorflow| is not yet available for Windows on \texttt{conda-forge}, we need to install it from \textit{PyPI} using \lstinline|pip| into the \textit{weai} environment: You will get a list of packages and can confirm with \keyenter. Installation takes a while. Since \lstinline|tensorflow| is not yet available for Windows on \texttt{conda-forge}, we need to install it from \textit{PyPI} using \lstinline|pip| into the \textit{weai} environment:
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize] \begin{lstlisting}[gobble=2]
#*\color{gray}(base) C:\textbackslash Users\textbackslash john>*mamba activate weai #*\color{gray}(base) C:\textbackslash Users\textbackslash john>*mamba activate weai
#*\color{gray}(weai) C:\textbackslash Users\textbackslash john>*pip install tensorflow==2.10.1 #*\color{gray}(weai) C:\textbackslash Users\textbackslash john>*pip install tensorflow==2.10.1
\end{lstlisting} \end{lstlisting}
If you have an NVIDIA GPU and want to activate support for it, install the following packages: If you have an NVIDIA GPU and want to activate support for it, install the following packages:
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize] \begin{lstlisting}[gobble=2]
#*\color{gray}(weai) C:\textbackslash Users\textbackslash john>*mamba install cudatoolkit cudnn #*\color{gray}(weai) C:\textbackslash Users\textbackslash john>*mamba install cudatoolkit cudnn
\end{lstlisting} \end{lstlisting}
and optionally (not required for Spyder) also add the path to the corresponding libraries (e.\,g.\ \textit{cudnn64\_8.dll}) in your user environment variable \lstinline|Path|, for example: and optionally (not required for Spyder) also add the path to the corresponding libraries (e.\,g.\ \textit{cudnn64\_8.dll}) in your user environment variable \lstinline|Path|, for example:
...@@ -125,6 +126,7 @@ and optionally (not required for Spyder) also add the path to the corresponding ...@@ -125,6 +126,7 @@ and optionally (not required for Spyder) also add the path to the corresponding
\section{Test} \section{Test}
\label{sec:test}
\begin{minipage}{0.6\linewidth} \begin{minipage}{0.6\linewidth}
Next, we start Spyder from the start menu. The entry is named \textit{Spyder (weai)}, since we installed Spyder into the \textit{weai} environment. Next, we start Spyder from the start menu. The entry is named \textit{Spyder (weai)}, since we installed Spyder into the \textit{weai} environment.
......