Skip to content

Commit 1a09689

Browse files
authored
Merge pull request #17 from JuliaAI/cifix
Update CI file and resolve error in building documentation
2 parents ec0eb11 + 03e26cc commit 1a09689

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ jobs:
125125
julia --project=docs -e '
126126
if ENV["BUILD_DOCS"] == "true"
127127
using Documenter: doctest
128-
using MLJBase
128+
using FeatureSelection
129129
@info "attempting to run the doctests"
130-
doctest(MLJBase)
130+
doctest(FeatureSelection)
131131
else
132132
@info "skipping the doctests"
133133
end'

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
MLJ = "add582a8-e3ab-11e8-2d5e-e98b27df1bc7"
4+
MLJDecisionTreeInterface = "c6f25543-311c-4c74-83dc-3ea6d1015661"
45
FeatureSelection = "33837fe5-dbff-4c9e-8c2f-c5612fe2b8b6"
56
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
67

78
[compat]
89
Documenter = "^1.4"
910
MLJ = "^0.20"
11+
MLJDecisionTreeInterface = "^0.4.2"
1012
StableRNGs = "^1.0"
1113
julia = "^1.0"

docs/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ y = @views(
6161
) .+ 20 .* (A[:, 3] .- 0.5).^ 2 .+ 10 .* A[:, 4] .+ 5 * A[:, 5]
6262
) # target
6363
```
64-
Now we that we have our data we can create our recursive feature elimination model and
64+
Now we that we have our data, we can create our recursive feature elimination model and
6565
train it on our dataset
6666
```@example example1
6767
RandomForestRegressor = @load RandomForestRegressor pkg=DecisionTree
@@ -100,7 +100,7 @@ julia> feature_importances(mach)
100100
:x9 => 1
101101
:x10 => 1
102102
```
103-
Note that a variable with lower rank has more significance than a variable with higher rank while a variable with higher feature importance is better than a variable with lower feature importance.
103+
Note that a variable with lower rank has more significance than a variable with higher rank; while a variable with higher feature importance is better than a variable with lower feature importance.
104104

105105
We can view the important features used by our model by inspecting the `fitted_params`
106106
object.

src/models/rfe.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ eval(:(const RFE{M} =
4646
This model implements a recursive feature elimination algorithm for feature selection.
4747
It recursively removes features, training a base model on the remaining features and
4848
evaluating their importance until the desired number of features is selected.
49-
49+
5050
Construct an instance with default hyper-parameters using the syntax
5151
`rfe_model = RecursiveFeatureElimination(model=...)`. Provide keyword arguments to override
5252
hyper-parameter defaults.

0 commit comments

Comments
 (0)