Skip to content

Commit 380deab

Browse files
committed
tweaks
1 parent 39adec2 commit 380deab

File tree

4 files changed

+61
-9
lines changed

4 files changed

+61
-9
lines changed

Manifest.toml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
julia_version = "1.11.3"
44
manifest_format = "2.0"
5-
project_hash = "9165adf90e7735dd68a4d9c573c0f4da5b2a109e"
5+
project_hash = "c9ed719b81be6cd3c78325086f6126c1ee10b86e"
66

77
[[deps.ArgTools]]
88
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
@@ -35,6 +35,11 @@ version = "1.6.0"
3535
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
3636
version = "1.11.0"
3737

38+
[[deps.InteractiveUtils]]
39+
deps = ["Markdown"]
40+
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
41+
version = "1.11.0"
42+
3843
[[deps.LibCURL]]
3944
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
4045
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
@@ -68,6 +73,12 @@ version = "1.11.0"
6873
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
6974
version = "1.11.0"
7075

76+
[[deps.MLJModelInterface]]
77+
deps = ["REPL", "Random", "ScientificTypesBase", "StatisticalTraits"]
78+
git-tree-sha1 = "66626f80d5807921045d539b4f7153b1d47c5f8a"
79+
uuid = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
80+
version = "1.11.1"
81+
7182
[[deps.Markdown]]
7283
deps = ["Base64"]
7384
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
@@ -86,22 +97,30 @@ version = "2023.12.12"
8697
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
8798
version = "1.2.0"
8899

100+
[[deps.OrderedCollections]]
101+
git-tree-sha1 = "05868e21324cede2207c6f0f466b4bfef6d5e7ee"
102+
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
103+
version = "1.8.1"
104+
89105
[[deps.Pkg]]
90106
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "Random", "SHA", "TOML", "Tar", "UUIDs", "p7zip_jll"]
91107
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
92108
version = "1.11.0"
109+
weakdeps = ["REPL"]
93110

94111
[deps.Pkg.extensions]
95112
REPLExt = "REPL"
96113

97-
[deps.Pkg.weakdeps]
98-
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
99-
100114
[[deps.Printf]]
101115
deps = ["Unicode"]
102116
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
103117
version = "1.11.0"
104118

119+
[[deps.REPL]]
120+
deps = ["InteractiveUtils", "Markdown", "Sockets", "StyledStrings", "Unicode"]
121+
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
122+
version = "1.11.0"
123+
105124
[[deps.Random]]
106125
deps = ["SHA"]
107126
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
@@ -111,6 +130,11 @@ version = "1.11.0"
111130
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
112131
version = "0.7.0"
113132

133+
[[deps.ScientificTypesBase]]
134+
git-tree-sha1 = "a8e18eb383b5ecf1b5e6fc237eb39255044fd92b"
135+
uuid = "30f210dd-8aff-4c5f-94ba-8e64358c1161"
136+
version = "3.0.0"
137+
114138
[[deps.Serialization]]
115139
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
116140
version = "1.11.0"
@@ -119,6 +143,16 @@ version = "1.11.0"
119143
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
120144
version = "1.11.0"
121145

146+
[[deps.StatisticalTraits]]
147+
deps = ["ScientificTypesBase"]
148+
git-tree-sha1 = "542d979f6e756f13f862aa00b224f04f9e445f11"
149+
uuid = "64bff920-2084-43da-a3e6-9bb72801c0c9"
150+
version = "3.4.0"
151+
152+
[[deps.StyledStrings]]
153+
uuid = "f489334b-da3d-4c2e-b8f0-e476e12c162b"
154+
version = "1.11.0"
155+
122156
[[deps.TOML]]
123157
deps = ["Dates"]
124158
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"

Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@ version = "0.1.0"
55

66
[deps]
77
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
8+
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
9+
MLJModelInterface = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
10+
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
811
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
912

1013
[compat]
1114
Distributed = "1.11.0"
15+
InteractiveUtils = "1.11.0"
16+
MLJModelInterface = "1.11.1"
17+
OrderedCollections = "1.8.1"
1218
Pkg = "1.11.0"
1319
Suppressor = "0.2"
1420
julia = "1.10"

src/GenericRegistry.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
55
Module providing basic tools to manage a *package registry*, by which is meant a package
66
environment, together with "package metata", in the form of a dictionary of TOML-parsable
7-
values, keyed on the environment's package dependencies, which is stored in a TOML file in
8-
the same directory as the Project.toml file for the environment. This file is called
9-
Metadata.toml and lives in the environment file containing the environment Project.toml
10-
file. Not to be confused with a package registry in the sense of the standard library,
11-
`Pkg`.
7+
values, keyed on the environment's package dependencies, which is stored in a TOML
8+
file. (This file is called Metadata.toml and is located in the same folder as environment
9+
Project.toml file.)re Not to be confused with a package registry in the sense of the
10+
standard library, `Pkg`.
1211
1312
# Methods
1413
@@ -155,6 +154,7 @@ function run(ex, pkgs)
155154
$(imports...)
156155
$ex
157156
end
157+
@show program
158158
return run_in_temporary_process(program)
159159
end
160160

src/MLJModelRegistry.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
module MLJModelRegistry
22

3+
import MLJModelInterface
4+
using OrderedCollections
5+
using InteractiveUtils
6+
7+
# Location of the MLJ model registry (a Julia pkg environment + metadata):
8+
const ROOT = joinpath(@__DIR__, "..")
9+
const REGISTRY = joinpath(ROOT, "registry")
10+
11+
# The MLJ Model Registry is a special case of a "generic model registry", as described in
12+
# this file, defining the `GenericRegistry` module (which has methods, no types):
313
include("GenericRegistry.jl")
14+
include("check_traits.jl")
15+
include("remote_methods.jl")
416

517
end # module

0 commit comments

Comments
 (0)