File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ recursive feature elimination should return the first columns as important featu
20
20
``` @meta
21
21
DocTestSetup = quote
22
22
using MLJ, FeatureSelection, StableRNGs
23
- rng = StableRNG(10 )
23
+ rng = StableRNG(123 )
24
24
A = rand(rng, 50, 10)
25
25
X = MLJ.table(A) # features
26
26
y = @views(
@@ -147,11 +147,11 @@ As before we can inspect the important features by inspecting the object returne
147
147
``` jldoctest
148
148
julia> fitted_params(self_tuning_rfe_mach).best_fitted_params.features_left
149
149
5-element Vector{Symbol}:
150
- :x1
151
- :x2
152
- :x3
153
150
:x4
151
+ :x2
152
+ :x1
154
153
:x5
154
+ :x3
155
155
156
156
julia> feature_importances(self_tuning_rfe_mach)
157
157
10-element Vector{Pair{Symbol, Int64}}:
@@ -163,7 +163,7 @@ julia> feature_importances(self_tuning_rfe_mach)
163
163
:x3 => 6
164
164
:x8 => 5
165
165
:x4 => 6
166
- :x10 => 3
166
+ :x10 => 3
167
167
:x1 => 6
168
168
```
169
169
and call ` predict ` on the tuned model machine as shown below
You can’t perform that action at this time.
0 commit comments