@@ -85,7 +85,7 @@ iris[!, Not(:class)]
85
85
86
86
# ╔═╡ 9db64168-338c-4bf7-b430-98c2efd39db3
87
87
md """
88
- ## Classifying with XGBoost
88
+ ## Classifying the Iris dataset with XGBoost
89
89
"""
90
90
91
91
# ╔═╡ cbef1767-4c50-4f40-aa29-e9bddbaeb2a0
@@ -119,11 +119,8 @@ model = xgboost((train[:, Not(:class)], train_labels))
119
119
# ╔═╡ e36eecca-feb6-4c76-9a14-0ffb675e904d
120
120
predictions = predict (model, test[:, Not (:class )])
121
121
122
- # ╔═╡ d0000e98-e712-4769-94b5-dc918637d7d5
123
- rmse (xs, ys) = sqrt (mean ((xs - ys) .^ 2 ))
124
-
125
122
# ╔═╡ 7557839c-a580-44c3-a135-b9384cff89c3
126
- rmse ( encode .(test. class), predictions)
123
+ √ mean (abs2, encode .(test. class) - predictions) # RMSE
127
124
128
125
# ╔═╡ 73413e5f-5c7f-4955-9acb-f5c5c996a903
129
126
count (encode .(test. class) .!= round .(predictions))
@@ -627,7 +624,6 @@ version = "17.4.0+2"
627
624
# ╠═d96c37be-da2f-4c0a-93c4-9ebf7f060603
628
625
# ╠═1a112052-f7e3-4bc8-bec6-70fcaa28eb1f
629
626
# ╠═e36eecca-feb6-4c76-9a14-0ffb675e904d
630
- # ╠═d0000e98-e712-4769-94b5-dc918637d7d5
631
627
# ╠═7557839c-a580-44c3-a135-b9384cff89c3
632
628
# ╠═73413e5f-5c7f-4955-9acb-f5c5c996a903
633
629
# ╠═697135f2-cf29-4769-bb75-0c615d30a2ab
0 commit comments