Skip to content

Commit

Permalink
deploy: b5c96e6
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell committed Dec 28, 2023
1 parent 39fa321 commit b09ab88
Show file tree
Hide file tree
Showing 13 changed files with 757 additions and 742 deletions.
7 changes: 6 additions & 1 deletion pull341/_sources/classification1.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ kernelspec:
:tags: [remove-cell]
from chapter_preamble import *
from IPython.display import HTML
from IPython.display import Image
from sklearn.metrics.pairwise import euclidean_distances
import numpy as np
import plotly.express as px
Expand Down Expand Up @@ -860,7 +861,11 @@ for neighbor_df in neighbor_df_list:
# tight layout
fig.update_layout(margin=dict(l=0, r=0, b=0, t=1), template="plotly_white")
glue("fig:05-more", fig)
# if HTML, use the plotly 3d image; if PDF, use static image
if "BOOK_BUILD_TYPE" in os.environ and os.environ["BOOK_BUILD_TYPE"] == "PDF":
glue("fig:05-more", Image("img/classification1/plot3d_knn_classification.png"))
else:
glue("fig:05-more", fig)
```

```{figure} data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
Expand Down
7 changes: 6 additions & 1 deletion pull341/_sources/regression1.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ kernelspec:
from chapter_preamble import *
from IPython.display import HTML
from IPython.display import Image
import plotly.express as px
import plotly.graph_objects as go
```
Expand Down Expand Up @@ -1148,7 +1149,11 @@ fig.update_layout(
template="plotly_white",
)
glue("fig:07-knn-mult-viz", fig)
# if HTML, use the plotly 3d image; if PDF, use static image
if "BOOK_BUILD_TYPE" in os.environ and os.environ["BOOK_BUILD_TYPE"] == "PDF":
glue("fig:07-knn-mult-viz", Image("img/regression1/plot3d_knn_regression.png"))
else:
glue("fig:07-knn-mult-viz", fig)
```

```{figure} data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
Expand Down
7 changes: 6 additions & 1 deletion pull341/_sources/regression2.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ kernelspec:
from chapter_preamble import *
from IPython.display import HTML
from IPython.display import Image
import numpy as np
import plotly.express as px
import plotly.graph_objects as go
Expand Down Expand Up @@ -827,7 +828,11 @@ fig.update_layout(
template="plotly_white",
)
glue("fig:08-3DlinReg", fig)
# if HTML, use the plotly 3d image; if PDF, use static image
if "BOOK_BUILD_TYPE" in os.environ and os.environ["BOOK_BUILD_TYPE"] == "PDF":
glue("fig:08-3DlinReg", Image("img/regression2/plot3d_linear_regression.png"))
else:
glue("fig:08-3DlinReg", fig)
```

```{figure} data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
Expand Down
204 changes: 102 additions & 102 deletions pull341/classification1.html

Large diffs are not rendered by default.

156 changes: 78 additions & 78 deletions pull341/classification2.html

Large diffs are not rendered by default.

182 changes: 91 additions & 91 deletions pull341/clustering.html

Large diffs are not rendered by default.

182 changes: 91 additions & 91 deletions pull341/inference.html

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions pull341/intro.html

Large diffs are not rendered by default.

130 changes: 65 additions & 65 deletions pull341/regression1.html

Large diffs are not rendered by default.

158 changes: 79 additions & 79 deletions pull341/regression2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pull341/searchindex.js

Large diffs are not rendered by default.

392 changes: 196 additions & 196 deletions pull341/viz.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pull341/wrangling.html
Original file line number Diff line number Diff line change
Expand Up @@ -4792,7 +4792,7 @@ <h2><span class="section-number">3.9. </span>Performing operations on groups of
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pandas.core.groupby.generic.DataFrameGroupBy object at 0x7f2728a1c6d0&gt;
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pandas.core.groupby.generic.DataFrameGroupBy object at 0x7f3f1ed30a10&gt;
</pre></div>
</div>
</div>
Expand Down

0 comments on commit b09ab88

Please sign in to comment.