@@ -106,7 +106,7 @@ $B_M=-675.4$
106106
107107Since the function represents Moore's law, define it as a Python
108108function using
109- [ ` lambda ` ] ( https://docs.python.org/3/library/ast.html?highlight=lambda#ast.Lambda )
109+ [ ` lambda ` ] ( https://docs.python.org/3/library/ast.html?highlight=lambda#ast.Lambda ) :
110110
111111``` {code-cell}
112112A_M = np.log(2) / 2
@@ -156,7 +156,7 @@ The extra options below will put the data in the desired format:
156156
157157* ` delimiter = ',' ` : specify delimeter as a comma ',' (this is the default behavior)
158158* ` usecols = [1,2] ` : import the second and third columns from the csv
159- * ` skiprows = 1 ` : do not use the first row, because its a header row
159+ * ` skiprows = 1 ` : do not use the first row, because it's a header row
160160
161161``` {code-cell}
162162data = np.loadtxt("transistor_data.csv", delimiter=",", usecols=[1, 2], skiprows=1)
@@ -282,7 +282,7 @@ In the next plot, use the
282282[ ` fivethirtyeight ` ] ( https://matplotlib.org/3.1.1/gallery/style_sheets/fivethirtyeight.html )
283283style sheet.
284284The style sheet replicates
285- https://fivethirtyeight.com elements. Change the matplotlib style with
285+ [ https://fivethirtyeight.com ] ( https://fivethirtyeight.com ) elements. Change the matplotlib style with
286286[ ` plt.style.use ` ] ( https://matplotlib.org/3.3.2/api/style_api.html#matplotlib.style.use ) .
287287
288288``` {code-cell}
@@ -334,7 +334,7 @@ option,
334334to increase the transparency of the data. The more opaque the points
335335appear, the more reported values lie on that measurement. The green $+$
336336is the average reported transistor count for 2017. Plot your predictions
337- for $\pm\frac{1}{2}~ years.
337+ for $\pm\frac{1}{2}$ years.
338338
339339``` {code-cell}
340340transistor_count2017 = transistor_count[year == 2017]
@@ -386,7 +386,7 @@ array using `np.loadtxt`, to save your model use two approaches
386386### Zipping the arrays into a file
387387Using ` np.savez ` , you can save thousands of arrays and give them names. The
388388function ` np.load ` will load the arrays back into the workspace as a
389- dictionary. You'll save a five arrays so the next user will have the year,
389+ dictionary. You'll save five arrays so the next user will have the year,
390390transistor count, predicted transistor count, Gordon Moore's
391391predicted count, and fitting constants. Add one more variable that other users can use to
392392understand the model, ` notes ` .
0 commit comments