Skip to content

Commit c227b32

Browse files
authored
Jdb/show (#313)
* up * fix #312
1 parent 8e20aa9 commit c227b32

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "EvoTrees"
22
uuid = "f6006082-12f8-11e9-0c9c-0d5d367ab1e5"
33
authors = ["jeremiedb <[email protected]>"]
4-
version = "0.18.0"
4+
version = "0.18.1"
55

66
[deps]
77
BSON = "fbb218c0-5317-5bc6-957e-2ee96dd4b1f0"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
3+
EvoTrees = "f6006082-12f8-11e9-0c9c-0d5d367ab1e5"
4+
MLJ = "add582a8-e3ab-11e8-2d5e-e98b27df1bc7"
5+
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
6+
MLJXGBoostInterface = "54119dfa-1dab-4055-a167-80440f4f7a91"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using EvoTrees
2+
using DataFrames
3+
using MLJ
4+
5+
@load XGBoostClassifier
6+
xgb = MLJXGBoostInterface.XGBoostClassifier()
7+
[xgb, xgb]
8+
9+
# @load EvoTreeClassifier
10+
evo = EvoTreeClassifier()
11+
[evo, evo]

src/learners.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,6 @@ const EvoTypes = Union{
460460
EvoTreeMLE,
461461
}
462462

463-
function Base.show(io::IO, config::EvoTypes)
464-
println(io, "$(typeof(config))")
465-
for fname in fieldnames(typeof(config))
466-
println(io, " - $fname: $(getfield(config, fname))")
467-
end
468-
end
469-
470463
"""
471464
check_parameter(::Type{<:T}, value, min_value::Real, max_value::Real, label::Symbol) where {T<:Number}
472465

0 commit comments

Comments
 (0)