Skip to content

Commit 974800e

Browse files
committed
add supports_class_weights to MODEL_TRAITS
1 parent a305f50 commit 974800e

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

src/MLJModelInterface.jl

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
module MLJModelInterface
22

33
const MODEL_TRAITS = [
4-
:input_scitype, :output_scitype, :target_scitype,
5-
:is_pure_julia, :package_name, :package_license,
6-
:load_path, :package_uuid, :package_url,
7-
:is_wrapper, :supports_weights, :supports_online,
8-
:docstring, :name, :is_supervised,
9-
:prediction_type, :implemented_methods, :hyperparameters,
10-
:hyperparameter_types, :hyperparameter_ranges]
4+
:input_scitype,
5+
:output_scitype,
6+
:target_scitype,
7+
:is_pure_julia,
8+
:package_name,
9+
:package_license,
10+
:load_path,
11+
:package_uuid,
12+
:package_url,
13+
:is_wrapper,
14+
:supports_weights,
15+
:supports_class_weights,
16+
:supports_online,
17+
:docstring,
18+
:name,
19+
:is_supervised,
20+
:prediction_type,
21+
:implemented_methods,
22+
:hyperparameters,
23+
:hyperparameter_types,
24+
:hyperparameter_ranges]
1125

1226
# ------------------------------------------------------------------------
1327
# Dependencies (ScientificTypes and StatisticalTraits have none)

src/model_traits.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
## MODEL TRAITS
2-
3-
# model trait names:
1+
## OVERLOADING TRAIT DEFAULTS RELEVANT TO MODELS
42

53
StatisticalTraits.docstring(M::Type{<:MLJType}) = name(M)
64
StatisticalTraits.docstring(M::Type{<:Model}) =

0 commit comments

Comments
 (0)