add exercise 9.3
This commit is contained in:
6
appB.jl
6
appB.jl
@@ -157,6 +157,12 @@ summarystats(puzzles[puzzles.Popularity .== -100, "NbPlays"])
|
|||||||
sum(length, values(rating_mapping))
|
sum(length, values(rating_mapping))
|
||||||
nrow(good)
|
nrow(good)
|
||||||
|
|
||||||
|
# Code for exercise 9.3
|
||||||
|
|
||||||
|
model2 = loess(ratings, mean_popularities; span=0.25);
|
||||||
|
popularity_predict2 = predict(model2, ratings_predict);
|
||||||
|
plot!(ratings_predict, popularity_predict2; width=5, color="yellow");
|
||||||
|
|
||||||
# Code for exercise 10.1
|
# Code for exercise 10.1
|
||||||
|
|
||||||
using BenchmarkTools
|
using BenchmarkTools
|
||||||
|
|||||||
Reference in New Issue
Block a user