File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name = " FeatureSelection"
22uuid = " 33837fe5-dbff-4c9e-8c2f-c5612fe2b8b6"
33authors = [" Anthony D. Blaom <anthony.blaom@gmail.com>" , " Samuel Okon <okonsamuel50@gmail.com" ]
4- version = " 0.2.1 "
4+ version = " 0.2.2 "
55
66[deps ]
77MLJModelInterface = " e80e1ace-859a-464e-9ed9-23947d8ae3ea"
Original file line number Diff line number Diff line change @@ -9,5 +9,6 @@ const MMI = MLJModelInterface
99# # Includes
1010include (" models/featureselector.jl" )
1111include (" models/rfe.jl" )
12+ include (" shared.jl" )
1213
1314end # module
Original file line number Diff line number Diff line change @@ -87,16 +87,6 @@ MMI.metadata_model(
8787 load_path = " FeatureSelection.FeatureSelector"
8888)
8989
90- # # Pkg Traits
91- MMI. metadata_pkg (
92- FeatureSelector,
93- package_name = " FeatureSelection" ,
94- package_uuid = " 33837fe5-dbff-4c9e-8c2f-c5612fe2b8b6" ,
95- package_url = " https://github.com/JuliaAI/FeatureSelection.jl" ,
96- is_pure_julia = true ,
97- package_license = " MIT"
98- )
99-
10090# # Docstring
10191"""
10292$(MMI. doc_header (FeatureSelector))
Original file line number Diff line number Diff line change 453453function MMI. training_losses (model:: RFE , rfe_report)
454454 return MMI. training_losses (model. model, rfe_report. model_report)
455455end
456-
457- # # Pkg Traits
458- MMI. metadata_pkg .(
459- (
460- DeterministicRecursiveFeatureElimination,
461- ProbabilisticRecursiveFeatureElimination,
462- ),
463- package_name = " FeatureSelection" ,
464- package_uuid = " 33837fe5-dbff-4c9e-8c2f-c5612fe2b8b6" ,
465- package_url = " https://github.com/JuliaAI/FeatureSelection.jl" ,
466- is_pure_julia = true ,
467- package_license = " MIT"
468- )
Original file line number Diff line number Diff line change 1+ # # Pkg Traits
2+
3+ for M in [
4+ :FeatureSelector ,
5+ :DeterministicRecursiveFeatureElimination ,
6+ :ProbabilisticRecursiveFeatureElimination ,
7+ ]
8+ quote
9+ MMI. package_name (:: Type{<:$M} ) = " FeatureSelection"
10+ MMI. package_uuid (:: Type{<:$M} ) = " 33837fe5-dbff-4c9e-8c2f-c5612fe2b8b6"
11+ MMI. package_url (:: Type{<:$M} ) = " https://github.com/JuliaAI/FeatureSelection.jl"
12+ MMI. is_pure_julia (:: Type{<:$M} ) = true
13+ MMI. package_license (:: Type{<:$M} ) = " MIT"
14+ end |> eval
15+ end
16+
Original file line number Diff line number Diff line change 191191
192192 @test predict (mach2, (; x1= rand (2 ), x2= rand (2 ))) == yhat
193193end
194+
195+ @testset " is_wrapper" begin
196+ m = RecursiveFeatureElimination (DecisionTreeClassifier ())
197+ @test is_wrapper (m)
198+ @test is_wrapper (typeof (m))
199+ end
200+
201+ true
You can’t perform that action at this time.
0 commit comments