Skip to content

Commit 909f107

Browse files
committed
Formatting changes, and removal of some text
I am switching to the default look of Jupyter as much as possible. Altering the look is not really supported by Jupyter, so rending on GitHub (for example) is very different than when running in your own browser. I also got rid of the animations that really slow down execution of the notebook in favor of using a slider to display a step in a computation - the reader can see the plots 'animated' by moving the slider. It is much faster to compute, and actually gives them fine grained control to go forwards/backwards in time. I am also revising my coverage of statistics, and moving the details about Bayes and total conditional probability to the third chapter. I shouldn't be talking about probability distributions before covering that material.
1 parent edbc98c commit 909f107

File tree

6 files changed

+304
-4930
lines changed

6 files changed

+304
-4930
lines changed

00-Preface.ipynb

+6-248
Large diffs are not rendered by default.

01-g-h-filter.ipynb

+68-301
Large diffs are not rendered by default.

02-Discrete-Bayes.ipynb

+222-4,378
Large diffs are not rendered by default.

kf_book/538.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"patch.edgecolor": "#f0f0f0",
99
"examples.directory": "",
1010
"figure.facecolor": "#ffffff",
11-
"grid.linestyle": "-",
11+
"grid.linestyle": "dotted",
1212
"grid.linewidth": 2.0,
1313
"grid.color": "#cbcbcb",
1414
"axes.edgecolor":"#f0f0f0",

kf_book/book_plots.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def reset_figsize():
5050
pylab.rcParams['figure.figsize'] = 8, 3
5151

5252

53-
def set_figsize(x=8, y=3):
53+
def set_figsize(x=10, y=4):
5454
""" set the figure size of the plot to the specified size in inches"""
5555

5656
pylab.rcParams['figure.figsize'] = x, y

kf_book/gh_internal.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def plot_hypothesis1():
3838
plt.ylim(150, 185)
3939
plt.xlabel('day')
4040
plt.ylabel('lbs')
41+
plt.grid(False)
4142
plt.tight_layout()
4243

4344

@@ -52,6 +53,7 @@ def plot_hypothesis2():
5253
plt.ylim(150, 185)
5354
plt.xlabel('day')
5455
plt.ylabel('lbs')
56+
plt.grid(False)
5557

5658
def plot_hypothesis3():
5759
weights = [158.0, 164.2, 160.3, 159.9, 162.1, 164.6,
@@ -67,6 +69,7 @@ def plot_hypothesis3():
6769
plt.ylim(145, 185)
6870
plt.xlabel('day')
6971
plt.ylabel('weight (lbs)')
72+
plt.grid(False)
7073

7174

7275
def plot_hypothesis4():
@@ -84,7 +87,8 @@ def plot_hypothesis4():
8487
plt.xlabel('day')
8588
plt.ylabel('weight (lbs)')
8689
book_plots.show_legend()
87-
90+
plt.grid(False)
91+
8892

8993
def plot_hypothesis5():
9094
weights = [158.0, 164.2, 160.3, 159.9, 162.1, 164.6,
@@ -103,6 +107,7 @@ def plot_hypothesis5():
103107
plt.xlabel('day')
104108
plt.ylabel('weight (lbs)')
105109
book_plots.show_legend()
110+
plt.grid(False)
106111

107112

108113
def plot_estimate_chart_1():

0 commit comments

Comments
 (0)