fully implement MLJ #62
CI.yml
on: pull_request
Documentation
4m 30s
Matrix: test
Annotations
2 errors
Documentation:
src/mlj_interface.jl#L53
doctest failure in ~/work/Maxnet.jl/Maxnet.jl/src/mlj_interface.jl:53-68
```jldoctest
using MLJBase
p_a, env = Maxnet.bradypus()
mach = machine(MaxnetBinaryClassifier(features = "lqp"), env, categorical(p_a), scitype_check_level = 0)
fit!(mach, verbosity = 0)
yhat = MLJBase.predict(mach, env)
yhat[1:5]
# output
5-element UnivariateFiniteVector{Multiclass{2}, Bool, UInt32, Float64}:
UnivariateFinite{Multiclass{2}}(false=>0.812, true=>0.188)
UnivariateFinite{Multiclass{2}}(false=>0.811, true=>0.189)
UnivariateFinite{Multiclass{2}}(false=>0.501, true=>0.499)
UnivariateFinite{Multiclass{2}}(false=>0.811, true=>0.189)
UnivariateFinite{Multiclass{2}}(false=>0.752, true=>0.248)
```
Subexpression:
using MLJBase
p_a, env = Maxnet.bradypus()
mach = machine(MaxnetBinaryClassifier(features = "lqp"), env, categorical(p_a), scitype_check_level = 0)
fit!(mach, verbosity = 0)
yhat = MLJBase.predict(mach, env)
yhat[1:5]
Evaluated output:
5-element UnivariateFiniteVector{Multiclass{2}, Bool, UInt32, Float64}:
UnivariateFinite{ScientificTypesBase.Multiclass{2}}(false=>0.812, true=>0.188)
UnivariateFinite{ScientificTypesBase.Multiclass{2}}(false=>0.811, true=>0.189)
UnivariateFinite{ScientificTypesBase.Multiclass{2}}(false=>0.501, true=>0.499)
UnivariateFinite{ScientificTypesBase.Multiclass{2}}(false=>0.811, true=>0.189)
UnivariateFinite{ScientificTypesBase.Multiclass{2}}(false=>0.752, true=>0.248)
Expected output:
5-element UnivariateFiniteVector{Multiclass{2}, Bool, UInt32, Float64}:
UnivariateFinite{Multiclass{2}}(false=>0.812, true=>0.188)
UnivariateFinite{Multiclass{2}}(false=>0.811, true=>0.189)
UnivariateFinite{Multiclass{2}}(false=>0.501, true=>0.499)
UnivariateFinite{Multiclass{2}}(false=>0.811, true=>0.189)
UnivariateFinite{Multiclass{2}}(false=>0.752, true=>0.248)
diff =
Warning: Diff output requires color.
5-element UnivariateFiniteVector{Multiclass{2}, Bool, UInt32, Float64}:
UnivariateFinite{Multiclass{2}}(false=>0.812, UnivariateFinite{ScientificTypesBase.Multiclass{2}}(false=>0.812, true=>0.188)
UnivariateFinite{Multiclass{2}}(false=>0.811, UnivariateFinite{ScientificTypesBase.Multiclass{2}}(false=>0.811, true=>0.189)
UnivariateFinite{Multiclass{2}}(false=>0.501, UnivariateFinite{ScientificTypesBase.Multiclass{2}}(false=>0.501, true=>0.499)
UnivariateFinite{Multiclass{2}}(false=>0.811, UnivariateFinite{ScientificTypesBase.Multiclass{2}}(false=>0.811, true=>0.189)
UnivariateFinite{Multiclass{2}}(false=>0.752, UnivariateFinite{ScientificTypesBase.Multiclass{2}}(false=>0.752, true=>0.248)
|
Documentation
Process completed with exit code 1.
|