Skip to content

Commit

Permalink
Fix code for Cookbook 11.3 (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewedwarddavidson authored Nov 22, 2023
1 parent b0a8b6b commit 74418fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/cookbook/cookbook-11.clj
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
ml/stages
last
ml/feature-importances
:values
(zipmap (ml/input-cols assembler))))

feature-importances
Expand All @@ -115,4 +116,4 @@ feature-importances
;; {"housing-median-age" 0.060262475752573055,
;; "median-income" 0.7847621702619059,
;; "bedrooms-per-house" 0.010547166447551434,
;; "population-per-house" 0.14442818753796965
;; "population-per-house" 0.14442818753796965}
5 changes: 3 additions & 2 deletions docs/cookbook/part_11_basic_ml_pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ Different models have different attributes. In our case, the random forest model
ml/stages
last
ml/feature-importances
(zipmap (ml/input-cols assembler))))
:values
(zipmap (ml/input-cols assembler)))
; {"housing-median-age" 0.060262475752573055,
; "median-income" 0.7847621702619059,
; "bedrooms-per-house" 0.010547166447551434,
; "population-per-house" 0.14442818753796965
; "population-per-house" 0.14442818753796965}
```

0 comments on commit 74418fc

Please sign in to comment.