From 04d0c467b18251bebc2f9cfd2329d6b13e970269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Sun, 29 May 2022 21:02:45 +0200 Subject: [PATCH] add example of using methods function --- ch09.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ch09.jl b/ch09.jl index ea86978..7aa1308 100644 --- a/ch09.jl +++ b/ch09.jl @@ -155,6 +155,8 @@ model = loess(ratings, mean_popularities); ratings_predict = float.(sort(ratings)) popularity_predict = predict(model, ratings_predict) +methods(predict) + plot!(ratings_predict, popularity_predict; width=5, color="black") combine(groupby(good, :Rating), :Popularity => mean)