Skip to content

Commit

Permalink
doc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed Oct 4, 2024
1 parent 027d52c commit 71f0594
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions notebooks/hanamicloth_book/plotlycloth_walkthrough.clj
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@
(ploclo/layer-point {:=mark-color "green"
:=name "Actual"})
(ploclo/layer-smooth {:=mark-color "orange"
:=name "Predicted"})
ploclo/plot)
:=name "Predicted"}))

;; By default, the regression is computed with only one predictor variable,
;; which is `:=x`.
Expand All @@ -338,8 +337,7 @@
(ploclo/layer-smooth {:=predictors [:petal-width
:petal-length]
:=mark-opacity 0.5
:=name "Predicted"})
ploclo/plot)
:=name "Predicted"}))

;; We can also provide the design matrix.

Expand All @@ -352,8 +350,7 @@
[:sepal-width-2 '(* sepal-width
sepal-width)]]
:=mark-opacity 0.5
:=name "Predicted"})
ploclo/plot)
:=name "Predicted"}))

;; Inspired by Sami Kallinen's [Heart of Clojure talk](https://2024.heartofclojure.eu/talks/sailing-with-scicloj-a-bayesian-adventure/):

Expand All @@ -369,11 +366,7 @@
sepal-width
sepal-width)]]
:=mark-opacity 0.5
:=name "Predicted"})
ploclo/plot)



:=name "Predicted"}))

;; We can also provide the regression model details as metamorph.ml options:

Expand All @@ -398,8 +391,7 @@
:=name "Actual"})
(ploclo/layer-smooth {:=model-options regression-tree-options
:=mark-opacity 0.5
:=name "Predicted"})
ploclo/plot)
:=name "Predicted"}))


;; An example inspired by Plotly's
Expand Down

0 comments on commit 71f0594

Please sign in to comment.