@@ -20,6 +20,8 @@ export selectrows, selectcols, select, nrows # data.jl
20
20
export table, levels_seen, matrix, container_type # data.jl
21
21
export partition, unpack # data.jl
22
22
export @set_defaults # utilities.jl
23
+ export @mlj_model # mlj_model_macro.jl
24
+ export metadata_model, metadata_pkg # metadata_utilities
23
25
export HANDLE_GIVEN_ID, @more , @constant # show.jl
24
26
export color_on, color_off # show.jl
25
27
export UnivariateFinite, average # distributions.jl
@@ -50,6 +52,7 @@ export pdf, mode, median, mean, shuffle!, categorical, shuffle, levels, levels!
50
52
export std
51
53
52
54
import Base.==
55
+ import Base: @__doc__
53
56
54
57
using Tables
55
58
using OrderedCollections # already a dependency of StatsBase
@@ -83,7 +86,7 @@ const DEFAULT_SHOW_DEPTH = 0
83
86
include (" utilities.jl" )
84
87
85
88
86
- # # BASE TYPES
89
+ # # BASE TYPES
87
90
88
91
abstract type MLJType end
89
92
include (" equality.jl" ) # equality for MLJType objects
@@ -116,7 +119,7 @@ abstract type UnsupervisedNetwork <: Unsupervised end
116
119
# # THE MODEL INTERFACE
117
120
118
121
# every model interface must implement a `fit` method of the form
119
- # `fit(model, verbosity::Integer, training_args...) -> fitresult, cache, report`
122
+ # `fit(model, verbosity::Integer, training_args...) -> fitresult, cache, report`
120
123
# or, one the simplified versions
121
124
# `fit(model, training_args...) -> fitresult`
122
125
# `fit(model, X, ys...) -> fitresult`
@@ -169,14 +172,14 @@ clean!(model::Model) = ""
169
172
170
173
# # TRAITS
171
174
172
- """
175
+ """
173
176
174
177
info(object)
175
178
176
179
List the traits of an object, such as a model or a performance measure.
177
180
178
181
"""
179
- info (object) = info (object, Val (ScientificTypes. trait (object)))
182
+ info (object) = info (object, Val (ScientificTypes. trait (object)))
180
183
181
184
182
185
include (" model_traits.jl" )
@@ -199,6 +202,12 @@ include("datasets.jl") # importing CSV will also load datasets_requires.jl
199
202
include (" tasks.jl" )
200
203
include (" measures.jl" )
201
204
205
+ # mlj model macro to help define models
206
+ include (" mlj_model_macro.jl" )
207
+
208
+ # metadata utils
209
+ include (" metadata_utilities.jl" )
210
+
202
211
# __init__() function:
203
212
include (" init.jl" )
204
213
0 commit comments