Corrected print to verbatim in pdf file

This commit is contained in:
mhjensen
2018-10-09 14:34:09 +02:00
parent 623299924f
commit 6dc71456e8
2 changed files with 2 additions and 2 deletions
Binary file not shown.
+2 -2
View File
@@ -247,7 +247,7 @@ Here is the Python code you need to generate the training data, see
also the \href{{https://physics.bu.edu/~pankajm/ML-Notebooks/HTML/NB_CVI-linreg_ising.html}}{notebook of Mehta et
al}.
\begin{print}
\begin{verbatim}
import numpy as np
import scipy.sparse as sp
np.random.seed(12)
@@ -276,7 +276,7 @@ def ising_energies(states,L):
return E
# calculate Ising energies
energies=ising_energies(states,L)
\end{print}
\end{verbatim}
We can now recast the problem as a linear regression model using our codes from project 1.
The way we are going to build our model mimicks the way we could think of finding say the gravitional constant for the graviational force between two planets.