From 4cff73faafe67a97722b55dd76d1b844135c1ba1 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Fri, 2 Oct 2026 09:51:04 +1300 Subject: [PATCH 1/3] Add caveats about MLJBase versions needed for describe, etc --- docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl | 5 ++++- docs/src/notebooks/UsingMLJ/03_model_tuning/notebook.jl | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl b/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl index 6816c96..0c922a9 100644 --- a/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl +++ b/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl @@ -64,7 +64,10 @@ evaluations = evaluate( measure=mav, ) -# Here's a pretty view of these results: +# (To provide mulitiple models, tagged with strings, to `evaluate` requires MLJBase 1.12.0 +# or higher.) + +# Here's a pretty view of these results (needs MLJBase 1.13.0 or higher): describe.(evaluations) |> pretty diff --git a/docs/src/notebooks/UsingMLJ/03_model_tuning/notebook.jl b/docs/src/notebooks/UsingMLJ/03_model_tuning/notebook.jl index e19e7dc..1b22c5c 100644 --- a/docs/src/notebooks/UsingMLJ/03_model_tuning/notebook.jl +++ b/docs/src/notebooks/UsingMLJ/03_model_tuning/notebook.jl @@ -123,7 +123,7 @@ e1 = evaluate(tuned_pipe, X, y; options...) @show ebase e0 e1; -# Or, we can do this: +# Or, we can do this (needs MLJBase 1.13.0 or higher): describe.([e0, e1]) |> pretty From b591ed9905db510e751b3734f2511d5a048c0fb2 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Fri, 2 Oct 2026 09:54:25 +1300 Subject: [PATCH 2/3] fix typo --- docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl b/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl index 0c922a9..9dc2ac0 100644 --- a/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl +++ b/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl @@ -64,7 +64,7 @@ evaluations = evaluate( measure=mav, ) -# (To provide mulitiple models, tagged with strings, to `evaluate` requires MLJBase 1.12.0 +# (To provide multiple models, tagged with strings, to `evaluate` requires MLJBase 1.12.0 # or higher.) # Here's a pretty view of these results (needs MLJBase 1.13.0 or higher): From 7045b4c229d83ae292c13adb5e3e3dd765527d3f Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Fri, 2 Oct 2026 10:16:58 +1300 Subject: [PATCH 3/3] add timings to the videos --- .../src/notebooks/UsingMLJ/01_basics/notebook.jl | 16 ++++++++++++++-- .../UsingMLJ/02_model_composition/notebook.jl | 14 ++++++++++++++ .../UsingMLJ/03_model_tuning/notebook.jl | 14 ++++++++++++++ 3 files changed, 42 insertions(+), 2 deletions(-) diff --git a/docs/src/notebooks/UsingMLJ/01_basics/notebook.jl b/docs/src/notebooks/UsingMLJ/01_basics/notebook.jl index 67cce33..2fa0c59 100644 --- a/docs/src/notebooks/UsingMLJ/01_basics/notebook.jl +++ b/docs/src/notebooks/UsingMLJ/01_basics/notebook.jl @@ -7,6 +7,18 @@ # To run the code in this tutorial in a live Julia session, first follow the instructions # given [here](@ref instructions). +# ### Video Timings + +# - 00:00 Introduction +# - 01:05 Goals +# - 01:48 Prerequisites and Getting Help +# - 02:21 Supervised Learning Recap +# - 05:31 Models and Machines +# - 09:28 **Live Coding:** Regression +# - 28:55 Scientific Types +# - 32:29 **Live Coding:** Scitypes and Classification +# - 55:45 End + # We start by inspecting the packages, and their exact versions, in the currently active # package environment: @@ -14,7 +26,7 @@ using Pkg Pkg.status() -# # Part I. Regression +# ## Part I. Regression using MLJ using UnicodePlots # for pretty display of labeled probability vectors @@ -116,7 +128,7 @@ scitype(3.143f0) scitype(["cat", "mouse", "dog"]) -# # Part II. Classification +# ## Part II. Classification # New data set for classification, the Adult Dataset (census data): using Downloads, CSV diff --git a/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl b/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl index 9dc2ac0..ee83162 100644 --- a/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl +++ b/docs/src/notebooks/UsingMLJ/02_model_composition/notebook.jl @@ -7,6 +7,20 @@ # To run the code in this tutorial in a live Julia session, first follow the instructions # given [here](@ref instructions). +# ### Video Timings + +# - 00:00 Introduction +# - 00:08 Goals +# - 01:19 Prerequisites and Getting Help +# - 02:00 Composite Models Defined +# - 04:13 Model Pipelines +# - 05:59 Data Leakage +# - 08:37 Target Transformations +# - 12:43 Live Coding: Pipelines +# - 18:42 Live Coding: Target Transformations +# - 20:35 Other Model Wrappers +# - 25:02 End + using MLJ # Load some model code: diff --git a/docs/src/notebooks/UsingMLJ/03_model_tuning/notebook.jl b/docs/src/notebooks/UsingMLJ/03_model_tuning/notebook.jl index 1b22c5c..62efc8d 100644 --- a/docs/src/notebooks/UsingMLJ/03_model_tuning/notebook.jl +++ b/docs/src/notebooks/UsingMLJ/03_model_tuning/notebook.jl @@ -7,6 +7,20 @@ # To run the code in this tutorial in a live Julia session, first follow the instructions # given [here](@ref instructions). +# ### Video Timings + +# - 00:00 Introduction +# - 00:06 Goals +# - 01:12 Prerequisites and Getting Help +# - 01:27 Live Coding: Learning Curves +# - 13:27 Tuning as Model Wrapper +# - 18:45 Live Coding: Grid Search +# - 26:17 Live Coding: Random Search +# - 30:48 Nested Resampling +# - 33:11 Final Observations +# - 36:59 End + + # ## Part I. Learning Curves using MLJ, Plots