You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/tutorials/standardization/notebook.md
+5-91Lines changed: 5 additions & 91 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,54 +40,6 @@ using RDatasets # To load sample datasets
40
40
using Random # For reproducibility
41
41
using ScientificTypes # For proper data typing
42
42
using Plots # For visualizations
43
-
using MLJLinearModels # For Logistic Regression
44
-
````
45
-
46
-
````
47
-
Precompiling LIBSVM...
48
-
922.3 ms ✓ liblinear_jll
49
-
919.7 ms ✓ libsvm_jll
50
-
837.3 ms ✓ LIBLINEAR
51
-
1393.2 ms ✓ LIBSVM
52
-
4 dependencies successfully precompiled in 3 seconds. 33 already precompiled.
53
-
Precompiling RDatasets...
54
-
3340.2 ms ✓ TimeZones
55
-
3632.3 ms ✓ RData
56
-
2434.4 ms ✓ RDatasets
57
-
3 dependencies successfully precompiled in 10 seconds. 67 already precompiled.
58
-
Precompiling FileIOExt...
59
-
1067.6 ms ✓ FileIO → HTTPExt
60
-
2541.2 ms ✓ Plots → FileIOExt
61
-
2 dependencies successfully precompiled in 3 seconds. 182 already precompiled.
62
-
Precompiling TimeZonesRecipesBaseExt...
63
-
470.1 ms ✓ TimeZones → TimeZonesRecipesBaseExt
64
-
1 dependency successfully precompiled in 1 seconds. 27 already precompiled.
65
-
Precompiling MLJLinearModels...
66
-
437.0 ms ✓ OpenSpecFun_jll
67
-
1694.4 ms ✓ SpecialFunctions
68
-
2526.4 ms ✓ ForwardDiff
69
-
972.1 ms ✓ DifferentiationInterface → DifferentiationInterfaceForwardDiffExt
70
-
966.6 ms ✓ NLSolversBase
71
-
1396.3 ms ✓ LineSearches
72
-
2234.5 ms ✓ Optim
73
-
2572.4 ms ✓ MLJLinearModels
74
-
8 dependencies successfully precompiled in 13 seconds. 73 already precompiled.
75
-
2 dependencies precompiled but different versions are currently loaded. Restart julia to access the new versions. Otherwise, loading dependents of these packages may trigger further precompilation to work with the unexpected versions.
581.9 ms ✓ DifferentiationInterface → DifferentiationInterfaceStaticArraysExt
78
-
1 dependency successfully precompiled in 1 seconds. 10 already precompiled.
79
-
Precompiling FiniteDiffStaticArraysExt...
80
-
573.6 ms ✓ FiniteDiff → FiniteDiffStaticArraysExt
81
-
586.8 ms ✓ ConstructionBase → ConstructionBaseStaticArraysExt
82
-
2 dependencies successfully precompiled in 1 seconds. 20 already precompiled.
83
-
1 dependency precompiled but a different version is currently loaded. Restart julia to access the new version. Otherwise, loading dependents of this package may trigger further precompilation to work with the unexpected version.
84
-
Precompiling NNlibForwardDiffExt...
85
-
630.6 ms ✓ KernelAbstractions → LinearAlgebraExt
86
-
703.5 ms ✓ ForwardDiff → ForwardDiffStaticArraysExt
87
-
1217.8 ms ✓ NNlib → NNlibForwardDiffExt
88
-
3 dependencies successfully precompiled in 2 seconds. 46 already precompiled.
89
-
1 dependency precompiled but a different version is currently loaded. Restart julia to access the new version. Otherwise, loading dependents of this package may trigger further precompilation to work with the unexpected version.
90
-
91
43
````
92
44
93
45
## Data Preparation
@@ -127,7 +79,7 @@ We'll convert our columns to their appropriate types:
127
79
````julia
128
80
# Coerce columns to the right scientific types
129
81
df =coerce(df,
130
-
:NPreg=>Count, # Number of pregnancies is a count
82
+
:NPreg=>Continuous, # Number of pregnancies will be treated as continuous
131
83
:Glu=> Continuous, # Glucose level is continuous
132
84
:BP=> Continuous, # Blood pressure is continuous
133
85
:Skin=> Continuous, # Skin thickness is continuous
@@ -138,17 +90,19 @@ df = coerce(df,
138
90
);
139
91
````
140
92
93
+
Notice we treat `NPreg` as continuous for broader compatibility with various MLJ models.
0 commit comments