diff --git a/README.md b/README.md
index bc4c72a2..8702c8e4 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ Grab some data and split into features and target:
```julia
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X); # To optmise for GPUs
```
@@ -83,17 +83,16 @@ Train the wrapped model:
julia> mach = machine(iterated_model, X, y)
julia> fit!(mach)
-[ Info: Training machine(ProbabilisticIteratedModel(model = NeuralNetworkClassifier(builder = MLP(hidden = (5, 4), …), …), …), …).
-[ Info: No iteration parameter specified. Using `iteration_parameter=:(epochs)`.
-[ Info: final loss: 0.10431026246922499
-[ Info: final training loss: 0.046286315
-[ Info: Stop triggered by Patience(4) stopping criterion.
-[ Info: Total of 349 iterations.
+[ Info: No iteration parameter specified. Using `iteration_parameter=:(epochs)`.
+[ Info: final loss: 0.1284184007796247
+[ Info: final training loss: 0.055630706
+[ Info: Stop triggered by NumberSinceBest(5) stopping criterion.
+[ Info: Total of 811 iterations.
```
Inspect results:
```julia-repl
-julia> plot(train_losses, label="Validation Loss", linewidth=2, size=(800,400))
+julia> plot(train_losses, label="Training Loss")
julia> plot!(validation_losses, label="Validation Loss", linewidth=2, size=(800,400))
```
diff --git a/docs/src/common_workflows/architecture_search/notebook.ipynb b/docs/src/common_workflows/architecture_search/notebook.ipynb
index 958109de..286491d1 100644
--- a/docs/src/common_workflows/architecture_search/notebook.ipynb
+++ b/docs/src/common_workflows/architecture_search/notebook.ipynb
@@ -95,7 +95,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng = 123);\n",
+ "y, X = unpack(iris, ==(:Species), rng = 123);\n",
"X = Float32.(X); # To be compatible with type of network network parameters\n",
"first(X, 5)"
],
@@ -130,7 +130,7 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (1, 1, 1), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 10, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = ComputationalResources.CPU1{Nothing}(nothing))"
+ "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (1, 1, 1), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 10, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = CPU1{Nothing}(nothing))"
},
"metadata": {},
"execution_count": 4
@@ -306,7 +306,7 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (21, 57, 25), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 10, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = ComputationalResources.CPU1{Nothing}(nothing))"
+ "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (45, 49, 21), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 10, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = CPU1{Nothing}(nothing))"
},
"metadata": {},
"execution_count": 8
@@ -341,9 +341,9 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "\u001b[1m10×2 DataFrame\u001b[0m\n\u001b[1m Row \u001b[0m│\u001b[1m mlp \u001b[0m\u001b[1m measurement \u001b[0m\n │\u001b[90m MLP… \u001b[0m\u001b[90m Float64 \u001b[0m\n─────┼────────────────────────────────────────────\n 1 │ MLP(hidden = (21, 57, 25), …) 0.0867019\n 2 │ MLP(hidden = (45, 17, 13), …) 0.0929803\n 3 │ MLP(hidden = (33, 13, 49), …) 0.0973896\n 4 │ MLP(hidden = (21, 41, 61), …) 0.0981502\n 5 │ MLP(hidden = (57, 49, 61), …) 0.100331\n 6 │ MLP(hidden = (25, 25, 29), …) 0.101083\n 7 │ MLP(hidden = (29, 61, 21), …) 0.101466\n 8 │ MLP(hidden = (29, 61, 5), …) 0.107513\n 9 │ MLP(hidden = (21, 61, 17), …) 0.107874\n 10 │ MLP(hidden = (45, 49, 61), …) 0.111292",
+ "text/plain": "\u001b[1m10×2 DataFrame\u001b[0m\n\u001b[1m Row \u001b[0m│\u001b[1m mlp \u001b[0m\u001b[1m measurement \u001b[0m\n │\u001b[90m MLP… \u001b[0m\u001b[90m Float64 \u001b[0m\n─────┼────────────────────────────────────────────\n 1 │ MLP(hidden = (45, 49, 21), …) 0.0860875\n 2 │ MLP(hidden = (25, 45, 33), …) 0.0877367\n 3 │ MLP(hidden = (29, 17, 53), …) 0.0970372\n 4 │ MLP(hidden = (61, 9, 29), …) 0.0970978\n 5 │ MLP(hidden = (49, 49, 9), …) 0.0971594\n 6 │ MLP(hidden = (21, 33, 61), …) 0.0984172\n 7 │ MLP(hidden = (57, 61, 61), …) 0.099232\n 8 │ MLP(hidden = (41, 13, 25), …) 0.101498\n 9 │ MLP(hidden = (53, 29, 21), …) 0.105323\n 10 │ MLP(hidden = (57, 33, 45), …) 0.110168",
"text/html": [
- "
1 | MLP(hidden = (21, 57, 25), …) | 0.0867019 |
2 | MLP(hidden = (45, 17, 13), …) | 0.0929803 |
3 | MLP(hidden = (33, 13, 49), …) | 0.0973896 |
4 | MLP(hidden = (21, 41, 61), …) | 0.0981502 |
5 | MLP(hidden = (57, 49, 61), …) | 0.100331 |
6 | MLP(hidden = (25, 25, 29), …) | 0.101083 |
7 | MLP(hidden = (29, 61, 21), …) | 0.101466 |
8 | MLP(hidden = (29, 61, 5), …) | 0.107513 |
9 | MLP(hidden = (21, 61, 17), …) | 0.107874 |
10 | MLP(hidden = (45, 49, 61), …) | 0.111292 |
"
+ "1 | MLP(hidden = (45, 49, 21), …) | 0.0860875 |
2 | MLP(hidden = (25, 45, 33), …) | 0.0877367 |
3 | MLP(hidden = (29, 17, 53), …) | 0.0970372 |
4 | MLP(hidden = (61, 9, 29), …) | 0.0970978 |
5 | MLP(hidden = (49, 49, 9), …) | 0.0971594 |
6 | MLP(hidden = (21, 33, 61), …) | 0.0984172 |
7 | MLP(hidden = (57, 61, 61), …) | 0.099232 |
8 | MLP(hidden = (41, 13, 25), …) | 0.101498 |
9 | MLP(hidden = (53, 29, 21), …) | 0.105323 |
10 | MLP(hidden = (57, 33, 45), …) | 0.110168 |
"
]
},
"metadata": {},
diff --git a/docs/src/common_workflows/architecture_search/notebook.jl b/docs/src/common_workflows/architecture_search/notebook.jl
index 61ba5d49..a5e4a15a 100644
--- a/docs/src/common_workflows/architecture_search/notebook.jl
+++ b/docs/src/common_workflows/architecture_search/notebook.jl
@@ -25,7 +25,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
# ### Loading and Splitting the Data
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng = 123);
+y, X = unpack(iris, ==(:Species), rng = 123);
X = Float32.(X); # To be compatible with type of network network parameters
first(X, 5)
diff --git a/docs/src/common_workflows/architecture_search/notebook.md b/docs/src/common_workflows/architecture_search/notebook.md
index e995c68f..b355247a 100644
--- a/docs/src/common_workflows/architecture_search/notebook.md
+++ b/docs/src/common_workflows/architecture_search/notebook.md
@@ -28,7 +28,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
````@example architecture_search
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng = 123);
+y, X = unpack(iris, ==(:Species), rng = 123);
X = Float32.(X); # To be compatible with type of network network parameters
first(X, 5)
````
diff --git a/docs/src/common_workflows/architecture_search/notebook.unexecuted.ipynb b/docs/src/common_workflows/architecture_search/notebook.unexecuted.ipynb
index 85b68135..6093c80e 100644
--- a/docs/src/common_workflows/architecture_search/notebook.unexecuted.ipynb
+++ b/docs/src/common_workflows/architecture_search/notebook.unexecuted.ipynb
@@ -75,7 +75,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng = 123);\n",
+ "y, X = unpack(iris, ==(:Species), rng = 123);\n",
"X = Float32.(X); # To be compatible with type of network network parameters\n",
"first(X, 5)"
],
diff --git a/docs/src/common_workflows/comparison/notebook.ipynb b/docs/src/common_workflows/comparison/notebook.ipynb
index 8163b302..d968843e 100644
--- a/docs/src/common_workflows/comparison/notebook.ipynb
+++ b/docs/src/common_workflows/comparison/notebook.ipynb
@@ -81,7 +81,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng=123);"
+ "y, X = unpack(iris, ==(:Species), rng=123);"
],
"metadata": {},
"execution_count": 3
@@ -107,7 +107,7 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (5, 4), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 50, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = ComputationalResources.CPU1{Nothing}(nothing))"
+ "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (5, 4), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 50, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = CPU1{Nothing}(nothing))"
},
"metadata": {},
"execution_count": 4
@@ -271,9 +271,9 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "\u001b[1m4×2 DataFrame\u001b[0m\n\u001b[1m Row \u001b[0m│\u001b[1m mlp \u001b[0m\u001b[1m measurement \u001b[0m\n │\u001b[90m Probabil… \u001b[0m\u001b[90m Float64 \u001b[0m\n─────┼────────────────────────────────────────────────\n 1 │ BayesianLDA(method = gevd, …) 0.0610826\n 2 │ NeuralNetworkClassifier(builder … 0.0857014\n 3 │ RandomForestClassifier(max_depth… 0.102881\n 4 │ ProbabilisticTunedModel(model = … 0.221056",
+ "text/plain": "\u001b[1m4×2 DataFrame\u001b[0m\n\u001b[1m Row \u001b[0m│\u001b[1m mlp \u001b[0m\u001b[1m measurement \u001b[0m\n │\u001b[90m Probabil… \u001b[0m\u001b[90m Float64 \u001b[0m\n─────┼────────────────────────────────────────────────\n 1 │ BayesianLDA(method = gevd, …) 0.0610826\n 2 │ NeuralNetworkClassifier(builder … 0.0857014\n 3 │ RandomForestClassifier(max_depth… 0.107885\n 4 │ ProbabilisticTunedModel(model = … 0.221056",
"text/html": [
- "1 | BayesianLDA(method = gevd, …) | 0.0610826 |
2 | NeuralNetworkClassifier(builder = MLP(hidden = (5, 4), …), …) | 0.0857014 |
3 | RandomForestClassifier(max_depth = -1, …) | 0.102881 |
4 | ProbabilisticTunedModel(model = XGBoostClassifier(test = 1, …), …) | 0.221056 |
"
+ "1 | BayesianLDA(method = gevd, …) | 0.0610826 |
2 | NeuralNetworkClassifier(builder = MLP(hidden = (5, 4), …), …) | 0.0857014 |
3 | RandomForestClassifier(max_depth = -1, …) | 0.107885 |
4 | ProbabilisticTunedModel(model = XGBoostClassifier(test = 1, …), …) | 0.221056 |
"
]
},
"metadata": {},
diff --git a/docs/src/common_workflows/comparison/notebook.jl b/docs/src/common_workflows/comparison/notebook.jl
index 4d75c49d..6716ec52 100644
--- a/docs/src/common_workflows/comparison/notebook.jl
+++ b/docs/src/common_workflows/comparison/notebook.jl
@@ -23,7 +23,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
# ### Loading and Splitting the Data
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
# ### Instantiating the models Now let's construct our model. This follows a similar setup
diff --git a/docs/src/common_workflows/comparison/notebook.md b/docs/src/common_workflows/comparison/notebook.md
index 1419ab55..8d689eb1 100644
--- a/docs/src/common_workflows/comparison/notebook.md
+++ b/docs/src/common_workflows/comparison/notebook.md
@@ -26,7 +26,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
````@example comparison
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
nothing #hide
````
diff --git a/docs/src/common_workflows/comparison/notebook.unexecuted.ipynb b/docs/src/common_workflows/comparison/notebook.unexecuted.ipynb
index b8517a90..65e472ff 100644
--- a/docs/src/common_workflows/comparison/notebook.unexecuted.ipynb
+++ b/docs/src/common_workflows/comparison/notebook.unexecuted.ipynb
@@ -73,7 +73,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng=123);"
+ "y, X = unpack(iris, ==(:Species), rng=123);"
],
"metadata": {},
"execution_count": null
diff --git a/docs/src/common_workflows/composition/notebook.ipynb b/docs/src/common_workflows/composition/notebook.ipynb
index ced33e3c..306a24c6 100644
--- a/docs/src/common_workflows/composition/notebook.ipynb
+++ b/docs/src/common_workflows/composition/notebook.ipynb
@@ -10,7 +10,7 @@
{
"cell_type": "markdown",
"source": [
- "This tutorial is available as a Jupyter notebook or julia script\n",
+ "This demonstration is available as a Jupyter notebook or julia script\n",
"[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/composition)."
],
"metadata": {}
@@ -83,7 +83,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng=123);\n",
+ "y, X = unpack(iris, ==(:Species), rng=123);\n",
"X = Float32.(X); # To be compatible with type of network network parameters"
],
"metadata": {},
@@ -146,7 +146,7 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "MLJFlux.NeuralNetworkClassifier"
+ "text/plain": "NeuralNetworkClassifier"
},
"metadata": {},
"execution_count": 5
@@ -173,7 +173,7 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (5, 4), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 50, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = ComputationalResources.CPU1{Nothing}(nothing))"
+ "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (5, 4), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 50, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = CPU1{Nothing}(nothing))"
},
"metadata": {},
"execution_count": 6
@@ -284,7 +284,7 @@
"\rProgress: 13%|███████▏ | ETA: 0:00:01\u001b[K\rProgress: 100%|█████████████████████████████████████████████████████| Time: 0:00:00\u001b[K\n",
"\rProgress: 67%|███████████████████████████████████▍ | ETA: 0:00:01\u001b[K\r\n",
" class: virginica\u001b[K\r\u001b[A[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 1, \"versicolor\" => 2).\n",
- "\rOptimising neural net: 4%[> ] ETA: 0:05:10\u001b[K\rOptimising neural net: 6%[=> ] ETA: 0:03:22\u001b[K\rOptimising neural net: 8%[=> ] ETA: 0:02:29\u001b[K\rOptimising neural net: 10%[==> ] ETA: 0:01:56\u001b[K\rOptimising neural net: 12%[==> ] ETA: 0:01:35\u001b[K\rOptimising neural net: 14%[===> ] ETA: 0:01:20\u001b[K\rOptimising neural net: 16%[===> ] ETA: 0:01:08\u001b[K\rOptimising neural net: 18%[====> ] ETA: 0:00:59\u001b[K\rOptimising neural net: 20%[====> ] ETA: 0:00:52\u001b[K\rOptimising neural net: 22%[=====> ] ETA: 0:00:46\u001b[K\rOptimising neural net: 24%[=====> ] ETA: 0:00:41\u001b[K\rOptimising neural net: 25%[======> ] ETA: 0:00:37\u001b[K\rOptimising neural net: 27%[======> ] ETA: 0:00:33\u001b[K\rOptimising neural net: 29%[=======> ] ETA: 0:00:30\u001b[K\rOptimising neural net: 31%[=======> ] ETA: 0:00:28\u001b[K\rOptimising neural net: 33%[========> ] ETA: 0:00:25\u001b[K\rOptimising neural net: 35%[========> ] ETA: 0:00:23\u001b[K\rOptimising neural net: 37%[=========> ] ETA: 0:00:21\u001b[K\rOptimising neural net: 39%[=========> ] ETA: 0:00:20\u001b[K\rOptimising neural net: 41%[==========> ] ETA: 0:00:18\u001b[K\rOptimising neural net: 43%[==========> ] ETA: 0:00:17\u001b[K\rOptimising neural net: 45%[===========> ] ETA: 0:00:15\u001b[K\rOptimising neural net: 47%[===========> ] ETA: 0:00:14\u001b[K\rOptimising neural net: 49%[============> ] ETA: 0:00:13\u001b[K\rOptimising neural net: 51%[============> ] ETA: 0:00:12\u001b[K\rOptimising neural net: 53%[=============> ] ETA: 0:00:11\u001b[K\rOptimising neural net: 55%[=============> ] ETA: 0:00:10\u001b[K\rOptimising neural net: 57%[==============> ] ETA: 0:00:10\u001b[K\rOptimising neural net: 59%[==============> ] ETA: 0:00:09\u001b[K\rOptimising neural net: 61%[===============> ] ETA: 0:00:08\u001b[K\rOptimising neural net: 63%[===============> ] ETA: 0:00:08\u001b[K\rOptimising neural net: 82%[====================> ] ETA: 0:00:03\u001b[K\rOptimising neural net: 84%[=====================> ] ETA: 0:00:02\u001b[K\rOptimising neural net: 86%[=====================> ] ETA: 0:00:02\u001b[K\rOptimising neural net: 88%[======================> ] ETA: 0:00:02\u001b[K\rOptimising neural net: 90%[======================> ] ETA: 0:00:01\u001b[K\rOptimising neural net: 92%[=======================> ] ETA: 0:00:01\u001b[K\rOptimising neural net: 94%[=======================> ] ETA: 0:00:01\u001b[K\rOptimising neural net: 96%[========================>] ETA: 0:00:01\u001b[K\rOptimising neural net: 98%[========================>] ETA: 0:00:00\u001b[K\rOptimising neural net: 100%[=========================] Time: 0:00:12\u001b[K\n",
+ "\rOptimising neural net: 4%[> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 6%[=> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 8%[=> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 10%[==> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 12%[==> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 14%[===> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 16%[===> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 18%[====> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 20%[====> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 22%[=====> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 24%[=====> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 25%[======> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 27%[======> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 29%[=======> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 31%[=======> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 33%[========> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 35%[========> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 37%[=========> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 39%[=========> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 41%[==========> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 43%[==========> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 45%[===========> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 47%[===========> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 49%[============> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 51%[============> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 53%[=============> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 55%[=============> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 57%[==============> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 59%[==============> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 61%[===============> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 63%[===============> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 65%[================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 67%[================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 69%[=================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 71%[=================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 73%[==================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 75%[==================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 76%[===================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 78%[===================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 80%[====================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 82%[====================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 84%[=====================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 86%[=====================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 88%[======================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 90%[======================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 92%[=======================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 94%[=======================> ] ETA: 0:00:00\u001b[K\rOptimising neural net: 96%[========================>] ETA: 0:00:00\u001b[K\rOptimising neural net: 98%[========================>] ETA: 0:00:00\u001b[K\rOptimising neural net: 100%[=========================] Time: 0:00:00\u001b[K\n",
"[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 3, \"versicolor\" => 1).\n",
"[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 3, \"versicolor\" => 1).\n",
"[ Info: After filtering, the mapping from each class to number of borderline points is (\"versicolor\" => 2).\n",
@@ -298,18 +298,18 @@
"│ layer = Dense(4 => 5, relu) # 25 parameters\n",
"│ summary(x) = \"4×8 Matrix{Float64}\"\n",
"└ @ Flux ~/.julia/packages/Flux/Wz6D4/src/layers/stateless.jl:60\n",
- "\rEvaluating over 5 folds: 40%[==========> ] ETA: 0:00:16\u001b[K[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 1, \"versicolor\" => 2).\n",
+ "\rEvaluating over 5 folds: 40%[==========> ] ETA: 0:00:10\u001b[K[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 1, \"versicolor\" => 2).\n",
"[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 1, \"versicolor\" => 2).\n",
- "\rEvaluating over 5 folds: 60%[===============> ] ETA: 0:00:07\u001b[K[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 1).\n",
+ "\rEvaluating over 5 folds: 60%[===============> ] ETA: 0:00:05\u001b[K[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 1).\n",
"┌ Warning: Cannot oversample a class with no borderline points. Skipping.\n",
"└ @ Imbalance ~/.julia/packages/Imbalance/knJL1/src/oversampling_methods/borderline_smote1/borderline_smote1.jl:67\n",
"\rProgress: 67%|███████████████████████████████████▍ | ETA: 0:00:00\u001b[K\r\n",
" class: virginica\u001b[K\r\u001b[A[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 1).\n",
"┌ Warning: Cannot oversample a class with no borderline points. Skipping.\n",
"└ @ Imbalance ~/.julia/packages/Imbalance/knJL1/src/oversampling_methods/borderline_smote1/borderline_smote1.jl:67\n",
- "\rEvaluating over 5 folds: 80%[====================> ] ETA: 0:00:03\u001b[K[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 3, \"versicolor\" => 3).\n",
+ "\rEvaluating over 5 folds: 80%[====================> ] ETA: 0:00:02\u001b[K[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 3, \"versicolor\" => 3).\n",
"[ Info: After filtering, the mapping from each class to number of borderline points is (\"virginica\" => 3, \"versicolor\" => 3).\n",
- "\rEvaluating over 5 folds: 100%[=========================] Time: 0:00:11\u001b[K\n"
+ "\rEvaluating over 5 folds: 100%[=========================] Time: 0:00:07\u001b[K\n"
]
},
{
diff --git a/docs/src/common_workflows/composition/notebook.jl b/docs/src/common_workflows/composition/notebook.jl
index 182021eb..b617a4b6 100644
--- a/docs/src/common_workflows/composition/notebook.jl
+++ b/docs/src/common_workflows/composition/notebook.jl
@@ -26,7 +26,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
# ### Loading and Splitting the Data
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X); # To be compatible with type of network network parameters
# To simulate an imbalanced dataset, we will take a random sample:
diff --git a/docs/src/common_workflows/composition/notebook.md b/docs/src/common_workflows/composition/notebook.md
index 0ef30b3b..949d5322 100644
--- a/docs/src/common_workflows/composition/notebook.md
+++ b/docs/src/common_workflows/composition/notebook.md
@@ -4,7 +4,7 @@ EditURL = "notebook.jl"
# Model Composition with MLJFlux
-This tutorial is available as a Jupyter notebook or julia script
+This demonstration is available as a Jupyter notebook or julia script
[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/composition).
In this workflow example, we see how MLJFlux enables composing MLJ models with MLJFlux
@@ -28,7 +28,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
````@example composition
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X); # To be compatible with type of network network parameters
nothing #hide
````
diff --git a/docs/src/common_workflows/composition/notebook.unexecuted.ipynb b/docs/src/common_workflows/composition/notebook.unexecuted.ipynb
index 54b2439a..ef75b9ab 100644
--- a/docs/src/common_workflows/composition/notebook.unexecuted.ipynb
+++ b/docs/src/common_workflows/composition/notebook.unexecuted.ipynb
@@ -10,7 +10,7 @@
{
"cell_type": "markdown",
"source": [
- "This tutorial is available as a Jupyter notebook or julia script\n",
+ "This demonstration is available as a Jupyter notebook or julia script\n",
"[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/composition)."
],
"metadata": {}
@@ -75,7 +75,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng=123);\n",
+ "y, X = unpack(iris, ==(:Species), rng=123);\n",
"X = Float32.(X); # To be compatible with type of network network parameters"
],
"metadata": {},
diff --git a/docs/src/common_workflows/early_stopping/notebook.ipynb b/docs/src/common_workflows/early_stopping/notebook.ipynb
index bbdda628..9f136402 100644
--- a/docs/src/common_workflows/early_stopping/notebook.ipynb
+++ b/docs/src/common_workflows/early_stopping/notebook.ipynb
@@ -3,7 +3,7 @@
{
"cell_type": "markdown",
"source": [
- "# Early Stopping with MLJFlux"
+ "# Early Stopping with MLJ"
],
"metadata": {}
},
@@ -81,7 +81,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng=123);\n",
+ "y, X = unpack(iris, ==(:Species), rng=123);\n",
"X = Float32.(X); # To be compatible with type of network network parameters"
],
"metadata": {},
@@ -108,7 +108,7 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (5, 4), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 50, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = ComputationalResources.CPU1{Nothing}(nothing))"
+ "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (5, 4), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 50, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = CPU1{Nothing}(nothing))"
},
"metadata": {},
"execution_count": 4
@@ -148,7 +148,7 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "5-element Vector{Any}:\n IterationControl.Step(1)\n EarlyStopping.NumberLimit(100)\n EarlyStopping.Patience(5)\n EarlyStopping.NumberSinceBest(9)\n EarlyStopping.TimeLimit(Dates.Millisecond(1800000))"
+ "text/plain": "5-element Vector{Any}:\n Step(1)\n NumberLimit(100)\n Patience(5)\n NumberSinceBest(9)\n TimeLimit(Dates.Millisecond(1800000))"
},
"metadata": {},
"execution_count": 5
@@ -179,7 +179,7 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "1-element Vector{IterationControl.WithLossDo{Main.var\"##351\".var\"#3#4\"}}:\n IterationControl.WithLossDo{Main.var\"##351\".var\"#3#4\"}(Main.var\"##351\".var\"#3#4\"(), false, nothing)"
+ "text/plain": "1-element Vector{WithLossDo{Main.var\"##267\".var\"#1#2\"}}:\n WithLossDo{Main.var\"##267\".var\"#1#2\"}(Main.var\"##267\".var\"#1#2\"(), false, nothing)"
},
"metadata": {},
"execution_count": 6
@@ -250,7 +250,7 @@
"[ Info: Training machine(ProbabilisticIteratedModel(model = NeuralNetworkClassifier(builder = MLP(hidden = (5, 4), …), …), …), …).\n",
"[ Info: final loss: 0.05287897645527522\n",
"[ Info: final training loss: 0.045833383\n",
- "[ Info: Stop triggered by EarlyStopping.NumberLimit(100) stopping criterion. \n",
+ "[ Info: Stop triggered by NumberLimit(100) stopping criterion. \n",
"[ Info: Total of 100 iterations. \n"
]
}
@@ -290,101 +290,101 @@
"\n",
"\n"
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n"
],
"image/svg+xml": [
"\n",
"\n"
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n"
]
},
"metadata": {},
diff --git a/docs/src/common_workflows/early_stopping/notebook.jl b/docs/src/common_workflows/early_stopping/notebook.jl
index a6c59da3..adcf39f7 100644
--- a/docs/src/common_workflows/early_stopping/notebook.jl
+++ b/docs/src/common_workflows/early_stopping/notebook.jl
@@ -10,7 +10,7 @@ using Pkg #!md
Pkg.activate(@__DIR__); #!md
Pkg.instantiate(); #!md
-# **Julia version** is assumed to be 1.10.*
+# **Julia version** is assumed to be 1.10.*
# ### Basic Imports
@@ -24,7 +24,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
# ### Loading and Splitting the Data
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X); # To be compatible with type of network network parameters
diff --git a/docs/src/common_workflows/early_stopping/notebook.md b/docs/src/common_workflows/early_stopping/notebook.md
index e6738259..076b7007 100644
--- a/docs/src/common_workflows/early_stopping/notebook.md
+++ b/docs/src/common_workflows/early_stopping/notebook.md
@@ -2,7 +2,7 @@
EditURL = "notebook.jl"
```
-# Early Stopping with MLJFlux
+# Early Stopping with MLJ
This demonstration is available as a Jupyter notebook or julia script
[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/early_stopping).
@@ -26,7 +26,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
````@example early_stopping
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X); # To be compatible with type of network network parameters
nothing #hide
````
diff --git a/docs/src/common_workflows/early_stopping/notebook.unexecuted.ipynb b/docs/src/common_workflows/early_stopping/notebook.unexecuted.ipynb
index 5effdb73..4441ab52 100644
--- a/docs/src/common_workflows/early_stopping/notebook.unexecuted.ipynb
+++ b/docs/src/common_workflows/early_stopping/notebook.unexecuted.ipynb
@@ -3,7 +3,7 @@
{
"cell_type": "markdown",
"source": [
- "# Early Stopping with MLJFlux"
+ "# Early Stopping with MLJ"
],
"metadata": {}
},
@@ -73,7 +73,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng=123);\n",
+ "y, X = unpack(iris, ==(:Species), rng=123);\n",
"X = Float32.(X); # To be compatible with type of network network parameters"
],
"metadata": {},
diff --git a/docs/src/common_workflows/hyperparameter_tuning/notebook.ipynb b/docs/src/common_workflows/hyperparameter_tuning/notebook.ipynb
new file mode 100644
index 00000000..18a49f77
--- /dev/null
+++ b/docs/src/common_workflows/hyperparameter_tuning/notebook.ipynb
@@ -0,0 +1,444 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "source": [
+ "# Hyperparameter Tuning with MLJFlux"
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "This demonstration is available as a Jupyter notebook or julia script\n",
+ "[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/hyperparameter_tuning)."
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "In this workflow example we learn how to tune different hyperparameters of MLJFlux\n",
+ "models with emphasis on training hyperparameters."
+ ],
+ "metadata": {}
+ },
+ {
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Activating project at `~/GoogleDrive/Julia/MLJ/MLJFlux/docs/src/common_workflows/hyperparameter_tuning`\n"
+ ]
+ }
+ ],
+ "cell_type": "code",
+ "source": [
+ "using Pkg\n",
+ "Pkg.activate(@__DIR__);\n",
+ "Pkg.instantiate();"
+ ],
+ "metadata": {},
+ "execution_count": 1
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "**Julia version** is assumed to be 1.10.*"
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "### Basic Imports"
+ ],
+ "metadata": {}
+ },
+ {
+ "outputs": [],
+ "cell_type": "code",
+ "source": [
+ "using MLJ # Has MLJFlux models\n",
+ "using Flux # For more flexibility\n",
+ "import RDatasets # Dataset source\n",
+ "using Plots # To plot tuning results\n",
+ "import Optimisers # native Flux.jl optimisers no longer supported"
+ ],
+ "metadata": {},
+ "execution_count": 2
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "### Loading and Splitting the Data"
+ ],
+ "metadata": {}
+ },
+ {
+ "outputs": [],
+ "cell_type": "code",
+ "source": [
+ "iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
+ "y, X = unpack(iris, ==(:Species), rng=123);\n",
+ "X = Float32.(X); # To be compatible with type of network network parameters"
+ ],
+ "metadata": {},
+ "execution_count": 3
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "### Instantiating the model"
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "Now let's construct our model. This follows a similar setup the one followed in the\n",
+ "[Quick Start](../../index.md#Quick-Start)."
+ ],
+ "metadata": {}
+ },
+ {
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "[ Info: For silent loading, specify `verbosity=0`. \n",
+ "import MLJFlux ✔\n"
+ ]
+ },
+ {
+ "output_type": "execute_result",
+ "data": {
+ "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (5, 4), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 10, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = CPU1{Nothing}(nothing))"
+ },
+ "metadata": {},
+ "execution_count": 4
+ }
+ ],
+ "cell_type": "code",
+ "source": [
+ "NeuralNetworkClassifier = @load NeuralNetworkClassifier pkg=MLJFlux\n",
+ "clf = NeuralNetworkClassifier(\n",
+ " builder=MLJFlux.MLP(; hidden=(5,4), σ=Flux.relu),\n",
+ " optimiser=Optimisers.Adam(0.01),\n",
+ " batch_size=8,\n",
+ " epochs=10,\n",
+ " rng=42,\n",
+ ")"
+ ],
+ "metadata": {},
+ "execution_count": 4
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "### Hyperparameter Tuning Example"
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "Let's tune the batch size and the learning rate. We will use grid search and 5-fold\n",
+ "cross-validation."
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "We start by defining the hyperparameter ranges"
+ ],
+ "metadata": {}
+ },
+ {
+ "outputs": [
+ {
+ "output_type": "execute_result",
+ "data": {
+ "text/plain": "NominalRange(optimiser = Adam(0.0001, (0.9, 0.999), 1.0e-8), Adam(0.00215443, (0.9, 0.999), 1.0e-8), Adam(0.0464159, (0.9, 0.999), 1.0e-8), ...)"
+ },
+ "metadata": {},
+ "execution_count": 5
+ }
+ ],
+ "cell_type": "code",
+ "source": [
+ "r1 = range(clf, :batch_size, lower=1, upper=64)\n",
+ "etas = [10^x for x in range(-4, stop=0, length=4)]\n",
+ "optimisers = [Optimisers.Adam(eta) for eta in etas]\n",
+ "r2 = range(clf, :optimiser, values=optimisers)"
+ ],
+ "metadata": {},
+ "execution_count": 5
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "Then passing the ranges along with the model and other arguments to the `TunedModel`\n",
+ "constructor."
+ ],
+ "metadata": {}
+ },
+ {
+ "outputs": [],
+ "cell_type": "code",
+ "source": [
+ "tuned_model = TunedModel(\n",
+ " model=clf,\n",
+ " tuning=Grid(goal=25),\n",
+ " resampling=CV(nfolds=5, rng=42),\n",
+ " range=[r1, r2],\n",
+ " measure=cross_entropy,\n",
+ ");"
+ ],
+ "metadata": {},
+ "execution_count": 6
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "Then wrapping our tuned model in a machine and fitting it."
+ ],
+ "metadata": {}
+ },
+ {
+ "outputs": [],
+ "cell_type": "code",
+ "source": [
+ "mach = machine(tuned_model, X, y);\n",
+ "fit!(mach, verbosity=0);"
+ ],
+ "metadata": {},
+ "execution_count": 7
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "Let's check out the best performing model:"
+ ],
+ "metadata": {}
+ },
+ {
+ "outputs": [
+ {
+ "output_type": "execute_result",
+ "data": {
+ "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (5, 4), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.0464159, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 10, \n batch_size = 1, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = CPU1{Nothing}(nothing))"
+ },
+ "metadata": {},
+ "execution_count": 8
+ }
+ ],
+ "cell_type": "code",
+ "source": [
+ "fitted_params(mach).best_model"
+ ],
+ "metadata": {},
+ "execution_count": 8
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "### Learning Curves"
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "With learning curves, it's possible to center our focus on the effects of a single\n",
+ "hyperparameter of the model"
+ ],
+ "metadata": {}
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "First define the range and wrap it in a learning curve"
+ ],
+ "metadata": {}
+ },
+ {
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "[ Info: Training machine(ProbabilisticTunedModel(model = NeuralNetworkClassifier(builder = MLP(hidden = (5, 4), …), …), …), …).\n",
+ "[ Info: Attempting to evaluate 25 models.\n",
+ "\rEvaluating over 25 metamodels: 0%[> ] ETA: N/A\u001b[K\rEvaluating over 25 metamodels: 4%[=> ] ETA: 0:00:03\u001b[K\rEvaluating over 25 metamodels: 8%[==> ] ETA: 0:00:02\u001b[K\rEvaluating over 25 metamodels: 12%[===> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 16%[====> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 20%[=====> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 24%[======> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 28%[=======> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 32%[========> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 36%[=========> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 40%[==========> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 44%[===========> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 48%[============> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 52%[=============> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 56%[==============> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 60%[===============> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 64%[================> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 68%[=================> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 72%[==================> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 76%[===================> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 80%[====================> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 84%[=====================> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 88%[======================> ] ETA: 0:00:01\u001b[K\rEvaluating over 25 metamodels: 92%[=======================> ] ETA: 0:00:00\u001b[K\rEvaluating over 25 metamodels: 96%[========================>] ETA: 0:00:00\u001b[K\rEvaluating over 25 metamodels: 100%[=========================] Time: 0:00:06\u001b[K\n"
+ ]
+ },
+ {
+ "output_type": "execute_result",
+ "data": {
+ "text/plain": "(parameter_name = \"epochs\",\n parameter_scale = :log10,\n parameter_values = [1, 2, 3, 4, 5, 6, 7, 9, 11, 13 … 39, 46, 56, 67, 80, 96, 116, 139, 167, 200],\n measurements = [0.9231712033780419, 0.7672938542047157, 0.6736075721456418, 0.6064130950372606, 0.5595521804926612, 0.5270759259385482, 0.5048969423979114, 0.47993815474701584, 0.46130985568830307, 0.4449225600160762 … 0.1621185148276446, 0.12283639917434747, 0.09543014842693512, 0.07850181447968614, 0.06950203807005066, 0.063248279208185, 0.060053521895940286, 0.05921442672620914, 0.05921052970422136, 0.060379476300399186],)"
+ },
+ "metadata": {},
+ "execution_count": 9
+ }
+ ],
+ "cell_type": "code",
+ "source": [
+ "r = range(clf, :epochs, lower=1, upper=200, scale=:log10)\n",
+ "curve = learning_curve(\n",
+ " clf,\n",
+ " X,\n",
+ " y,\n",
+ " range=r,\n",
+ " resampling=CV(nfolds=4, rng=42),\n",
+ " measure=cross_entropy,\n",
+ ")"
+ ],
+ "metadata": {},
+ "execution_count": 9
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "Then plot the curve"
+ ],
+ "metadata": {}
+ },
+ {
+ "outputs": [
+ {
+ "output_type": "execute_result",
+ "data": {
+ "text/plain": "Plot{Plots.GRBackend() n=1}",
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQCAIAAAD9V4nPAAAABmJLR0QA/wD/AP+gvaeTAAAgAElEQVR4nO3dZ0AU194G8DNl6SAgHQEBwQqoiCgqIE0EMfaaaIyKJYkmlsDNm6j3em8ssSSaxIhKLLFrbKiIWLBhw65oFLtIV0D6zM77YQ1BXBQNu7Pl+X3amR2GPzrw7Jk5hRIEgQAAAGgrWuwCAAAAxIQgBAAArYYgBAAArYYgBAAArYYgBAAArYYgBAAArYYgBAAArYYgBAAArYYgBAAArYYgBAAAraYGQbhnz54jR47U82CpVMrzvELrAai/qqoqsUsA+BsuSLnUIAhPnjx59uzZeh7M8zz+p0F1lJeXi10CwN9wQcqlBkEIAACgOAhCAADQaghCAADQaghCAADQaghCAADQaghCAADQaghCAADQaghCAADQapoWhDsekMBEOg9jRgEAoH5YsQtoYH2cyJUCodNubl8Pxr0RJXY5AAAie/z4cWpqqux1WVmZvr6+uPW8N2tra39/f0WcWdOCkCLkG0/B1ZT2T+C2h7BdrJGFAKDV4uLiduzY0bJlS0KIIAgUpZZ/FSsqKs6cOZOVlaWIk2taEMqMcqftDam+B7lfujADnDXt9i8AQP0JgjB48OBvvvlG7EL+kZycHA8PDwWdXGNDIsye2hfOTk6V/nxDKnYtAACgujQ2CAkhHSyoE1HMTzekk1N5qSB2NQAAoJI0OQgJIc7G1Mko9mK+MPgwX45lCgEA4DUaHoSEEHNdcrAny1AkIpF7Xil2NQAAoGI0PwgJIboM2RjEdLCkuu7hHr7ATVIAAPibVgQhIYQiZH5HZmxzusse/mI+shAAAF7SliCUmdyG/rEz3WM/l/gYWQgAoFoqKyuvXr368OFDJX9f7QpCQki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3Zzc6v5rNHCwqJ6Rc/p06dPnjzZ2to6MjIyLCysT58+ZmZmDfDTAqgJBCGA8lRWVrIs27Vr15o7Q0JCPDw8qjdZ9pXfSh0dnYqKCkJIYWGhbLPWuzzPE0I4jnv93ZokEknNTdljRZnPPvvM399/27Zthw4dio6O/uqrr/bt2+fj4/PuPx+AWkIQAiiPq6trZWXlkCFDnJyc6jrm9u3bNTdv3brl6upKCGnatKlss+a76enpsv3NmjUjhFy7dq13797vUZinp6enp+d//vOf+/fvd+rUac6cOX/88cd7nAdAHWEcIYDyDBo0SCKRxMbGyhpwMiUlJc+ePave3L59+/3792WvT506dfr06bCwMEKIo6Ojt7d3XFxcQUGB7N0dO3bcunWrX79+hJCmTZv6+fn9+OOPjx8/rj6VrCn5ZlKpNDMzs3rTycnJ1ta2ZnkAGg8tQgDlcXFxWbZs2fjx469evRoeHq6np3fnzp3ExMRNmzaFh4fLjmnfvr2fn9+wYcMqKirWrFnTqlWryZMny9765ZdfgoODfXx8BgwYkJOTs379+s6dO0+YMEH27sqVK7t37+7l5TVgwABbW9sbN24UFhYeOHDgzSVxHOfk5BQWFubh4WFoaHj8+PGrV6/OmTNHcf8IAKoG4wgBlO3y5curVq26fv26RCJxcHAIDQ3t1auXgYGBbBzhwoULW7ZsGR8fn5+f37Fjx5iYmJpdV27fvr106dKrV68aGhoGBwePHz++5txp2dnZP//889mzZ3med3Z2HjZsmGzE/fLlyyUSySeffFJ95PLly3V0dEaNGiUIwsaNG48dO/bw4UOO45o1azZmzJiaXXIANB6CEEBVVAfhlClTxK4FQIvgGSEAAGg1BCGACjEzM9PT0xO7CgDtglujAACg1dAiBAAArYYgBAAArfb/ks8yH29TyCcAAAAASUVORK5CYII=",
+ "text/html": [
+ "\n",
+ "\n"
+ ],
+ "image/svg+xml": [
+ "\n",
+ "\n"
+ ]
+ },
+ "metadata": {},
+ "execution_count": 10
+ }
+ ],
+ "cell_type": "code",
+ "source": [
+ "plot(\n",
+ " curve.parameter_values,\n",
+ " curve.measurements,\n",
+ " xlab=curve.parameter_name,\n",
+ " xscale=curve.parameter_scale,\n",
+ " ylab = \"Cross Entropy\",\n",
+ ")"
+ ],
+ "metadata": {},
+ "execution_count": 10
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "---\n",
+ "\n",
+ "*This notebook was generated using [Literate.jl](https://github.com/fredrikekre/Literate.jl).*"
+ ],
+ "metadata": {}
+ }
+ ],
+ "nbformat_minor": 3,
+ "metadata": {
+ "language_info": {
+ "file_extension": ".jl",
+ "mimetype": "application/julia",
+ "name": "julia",
+ "version": "1.10.3"
+ },
+ "kernelspec": {
+ "name": "julia-1.10",
+ "display_name": "Julia 1.10.3",
+ "language": "julia"
+ }
+ },
+ "nbformat": 4
+}
diff --git a/docs/src/common_workflows/hyperparameter_tuning/notebook.jl b/docs/src/common_workflows/hyperparameter_tuning/notebook.jl
index aa39830d..3c85ec16 100644
--- a/docs/src/common_workflows/hyperparameter_tuning/notebook.jl
+++ b/docs/src/common_workflows/hyperparameter_tuning/notebook.jl
@@ -24,7 +24,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
# ### Loading and Splitting the Data
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X); # To be compatible with type of network network parameters
diff --git a/docs/src/common_workflows/hyperparameter_tuning/notebook.md b/docs/src/common_workflows/hyperparameter_tuning/notebook.md
index ae50dd14..d6649fe0 100644
--- a/docs/src/common_workflows/hyperparameter_tuning/notebook.md
+++ b/docs/src/common_workflows/hyperparameter_tuning/notebook.md
@@ -26,7 +26,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
````@example hyperparameter_tuning
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X); # To be compatible with type of network network parameters
nothing #hide
````
diff --git a/docs/src/common_workflows/hyperparameter_tuning/notebook.unexecuted.ipynb b/docs/src/common_workflows/hyperparameter_tuning/notebook.unexecuted.ipynb
index 2060f391..bbb6280a 100644
--- a/docs/src/common_workflows/hyperparameter_tuning/notebook.unexecuted.ipynb
+++ b/docs/src/common_workflows/hyperparameter_tuning/notebook.unexecuted.ipynb
@@ -73,7 +73,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng=123);\n",
+ "y, X = unpack(iris, ==(:Species), rng=123);\n",
"X = Float32.(X); # To be compatible with type of network network parameters"
],
"metadata": {},
diff --git a/docs/src/common_workflows/incremental_training/notebook.ipynb b/docs/src/common_workflows/incremental_training/notebook.ipynb
index b85e848b..e3b44f52 100644
--- a/docs/src/common_workflows/incremental_training/notebook.ipynb
+++ b/docs/src/common_workflows/incremental_training/notebook.ipynb
@@ -7,6 +7,14 @@
],
"metadata": {}
},
+ {
+ "cell_type": "markdown",
+ "source": [
+ "This demonstration is available as a Jupyter notebook or julia script\n",
+ "[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/incremental_training)."
+ ],
+ "metadata": {}
+ },
{
"cell_type": "markdown",
"source": [
@@ -36,9 +44,7 @@
{
"cell_type": "markdown",
"source": [
- "**Julia version** is assumed to be 1.10.* This tutorial is available as a Jupyter\n",
- "notebook or julia script\n",
- "[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/incremental_training)."
+ "**Julia version** is assumed to be 1.10.*"
],
"metadata": {}
},
@@ -73,7 +79,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng=123);\n",
+ "y, X = unpack(iris, ==(:Species), rng=123);\n",
"X = Float32.(X) # To be compatible with type of network network parameters\n",
"(X_train, X_test), (y_train, y_test) = partition(\n",
" (X, y), 0.8,\n",
@@ -113,7 +119,7 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (5, 4), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 10, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = ComputationalResources.CPU1{Nothing}(nothing))"
+ "text/plain": "NeuralNetworkClassifier(\n builder = MLP(\n hidden = (5, 4), \n σ = NNlib.relu), \n finaliser = NNlib.softmax, \n optimiser = Adam(0.01, (0.9, 0.999), 1.0e-8), \n loss = Flux.Losses.crossentropy, \n epochs = 10, \n batch_size = 8, \n lambda = 0.0, \n alpha = 0.0, \n rng = 42, \n optimiser_changes_trigger_retraining = false, \n acceleration = CPU1{Nothing}(nothing))"
},
"metadata": {},
"execution_count": 4
@@ -161,7 +167,7 @@
{
"output_type": "execute_result",
"data": {
- "text/plain": "trained Machine; caches model-specific representations of data\n model: NeuralNetworkClassifier(builder = MLP(hidden = (5, 4), …), …)\n args: \n 1:\tSource @068 ⏎ ScientificTypesBase.Table{AbstractVector{ScientificTypesBase.Continuous}}\n 2:\tSource @767 ⏎ AbstractVector{ScientificTypesBase.Multiclass{3}}\n"
+ "text/plain": "trained Machine; caches model-specific representations of data\n model: NeuralNetworkClassifier(builder = MLP(hidden = (5, 4), …), …)\n args: \n 1:\tSource @547 ⏎ Table{AbstractVector{Continuous}}\n 2:\tSource @645 ⏎ AbstractVector{Multiclass{3}}\n"
},
"metadata": {},
"execution_count": 5
diff --git a/docs/src/common_workflows/incremental_training/notebook.jl b/docs/src/common_workflows/incremental_training/notebook.jl
index 20d38b53..6d44c046 100644
--- a/docs/src/common_workflows/incremental_training/notebook.jl
+++ b/docs/src/common_workflows/incremental_training/notebook.jl
@@ -22,7 +22,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
# ### Loading and Splitting the Data
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X) # To be compatible with type of network network parameters
(X_train, X_test), (y_train, y_test) = partition(
(X, y), 0.8,
diff --git a/docs/src/common_workflows/incremental_training/notebook.md b/docs/src/common_workflows/incremental_training/notebook.md
index 94be1207..3810f90c 100644
--- a/docs/src/common_workflows/incremental_training/notebook.md
+++ b/docs/src/common_workflows/incremental_training/notebook.md
@@ -4,11 +4,12 @@ EditURL = "notebook.jl"
# Incremental Training with MLJFlux
+This demonstration is available as a Jupyter notebook or julia script
+[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/incremental_training).
+
In this workflow example we explore how to incrementally train MLJFlux models.
-**Julia version** is assumed to be 1.10.* This tutorial is available as a Jupyter
-notebook or julia script
-[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/incremental_training).
+**Julia version** is assumed to be 1.10.*
### Basic Imports
@@ -23,7 +24,7 @@ import Optimisers # native Flux.jl optimisers no longer supported
````@example incremental_training
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X) # To be compatible with type of network network parameters
(X_train, X_test), (y_train, y_test) = partition(
(X, y), 0.8,
diff --git a/docs/src/common_workflows/incremental_training/notebook.unexecuted.ipynb b/docs/src/common_workflows/incremental_training/notebook.unexecuted.ipynb
index 4d12d4d7..b9227430 100644
--- a/docs/src/common_workflows/incremental_training/notebook.unexecuted.ipynb
+++ b/docs/src/common_workflows/incremental_training/notebook.unexecuted.ipynb
@@ -7,6 +7,14 @@
],
"metadata": {}
},
+ {
+ "cell_type": "markdown",
+ "source": [
+ "This demonstration is available as a Jupyter notebook or julia script\n",
+ "[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/incremental_training)."
+ ],
+ "metadata": {}
+ },
{
"cell_type": "markdown",
"source": [
@@ -28,9 +36,7 @@
{
"cell_type": "markdown",
"source": [
- "**Julia version** is assumed to be 1.10.* This tutorial is available as a Jupyter\n",
- "notebook or julia script\n",
- "[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/incremental_training)."
+ "**Julia version** is assumed to be 1.10.*"
],
"metadata": {}
},
@@ -65,7 +71,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng=123);\n",
+ "y, X = unpack(iris, ==(:Species), rng=123);\n",
"X = Float32.(X) # To be compatible with type of network network parameters\n",
"(X_train, X_test), (y_train, y_test) = partition(\n",
" (X, y), 0.8,\n",
diff --git a/docs/src/common_workflows/live_training/notebook.jl b/docs/src/common_workflows/live_training/notebook.jl
index 16bae98a..de1a6fb8 100644
--- a/docs/src/common_workflows/live_training/notebook.jl
+++ b/docs/src/common_workflows/live_training/notebook.jl
@@ -23,7 +23,7 @@ using Plots
# ### Loading and Splitting the Data
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X); # To be compatible with type of network network parameters
diff --git a/docs/src/common_workflows/live_training/notebook.md b/docs/src/common_workflows/live_training/notebook.md
index edc1b140..14b77358 100644
--- a/docs/src/common_workflows/live_training/notebook.md
+++ b/docs/src/common_workflows/live_training/notebook.md
@@ -4,7 +4,7 @@ EditURL = "notebook.jl"
# Live Training with MLJFlux
-This tutorial is available as a Jupyter notebook or julia script
+This demonstration is available as a Jupyter notebook or julia script
[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/live_training).
**Julia version** is assumed to be 1.10.*
@@ -26,7 +26,7 @@ using Plots
````@example live_training
iris = RDatasets.dataset("datasets", "iris");
-y, X = unpack(iris, ==(:Species), colname -> true, rng=123);
+y, X = unpack(iris, ==(:Species), rng=123);
X = Float32.(X); # To be compatible with type of network network parameters
nothing #hide
````
diff --git a/docs/src/common_workflows/live_training/notebook.unexecuted.ipynb b/docs/src/common_workflows/live_training/notebook.unexecuted.ipynb
index a647a39a..fb86f8e7 100644
--- a/docs/src/common_workflows/live_training/notebook.unexecuted.ipynb
+++ b/docs/src/common_workflows/live_training/notebook.unexecuted.ipynb
@@ -10,7 +10,7 @@
{
"cell_type": "markdown",
"source": [
- "This tutorial is available as a Jupyter notebook or julia script\n",
+ "This demonstration is available as a Jupyter notebook or julia script\n",
"[here](https://github.com/FluxML/MLJFlux.jl/tree/dev/docs/src/common_workflows/live_training)."
],
"metadata": {}
@@ -73,7 +73,7 @@
"cell_type": "code",
"source": [
"iris = RDatasets.dataset(\"datasets\", \"iris\");\n",
- "y, X = unpack(iris, ==(:Species), colname -> true, rng=123);\n",
+ "y, X = unpack(iris, ==(:Species), rng=123);\n",
"X = Float32.(X); # To be compatible with type of network network parameters"
],
"metadata": {},
diff --git a/readme_figure.png b/readme_figure.png
index c5ad0267..77554bfd 100644
Binary files a/readme_figure.png and b/readme_figure.png differ