Skip to content

Commit 4b2219e

Browse files
committed
add skeleton docs
add skeleton docs add forgotten file
1 parent 15d6c44 commit 4b2219e

File tree

6 files changed

+103
-16
lines changed

6 files changed

+103
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ packages providing a machine learning toolbox. The MLJModelRegistry.jl has two f
1818

1919
- It provides software tools for MLJ maintainers to manage the Model Registry, for example
2020
to add the models provided by a new machine learning package providing an MLJ model
21-
interface.
21+
interface for those models.
2222

2323
This repository does not provide any MLJ user code but does contain metadata downloaded as
2424
a Julia `Artifact` by MLJ software. See the

docs/Project.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656"
4+
MLJModelRegistry = "0a96183e-380b-4aa6-be10-c555140810f2"
5+
6+
[compat]
7+
Documenter = "1"
8+
julia = "1.10"

docs/make.jl

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using Documenter
2+
using MLJModelRegistry
3+
using DocumenterInterLinks
4+
using MLJModelRegistry.GenericRegistry
5+
6+
const REPO = Remotes.GitHub("JuliaAI", "MLJModelRegistry.jl")
7+
8+
makedocs(
9+
modules=[MLJModelRegistry, GenericRegistry],
10+
format=Documenter.HTML(
11+
prettyurls = true,
12+
collapselevel = 1,
13+
),
14+
pages=[
15+
"Home" => "index.md",
16+
"Internals" => "internals.md",
17+
],
18+
sitename="MLJModelRegistry.jl",
19+
warnonly = [:cross_references, :missing_docs],
20+
repo = Remotes.GitHub("JuliaAI", "MLJModelRegistry.jl"),
21+
)
22+
23+
deploydocs(
24+
devbranch="dev",
25+
push_preview=false,
26+
repo="github.com/JuliaAI/MLJModelRegistry.jl.git",
27+
)

docs/src/index.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# MLJModelInterface.jl
2+
3+
Home of the MLJ Model Registry
4+
5+
# What's this repository for?
6+
7+
[MLJ](https://juliaml.ai) (Machine Learning in Julia) is a suite of Julia software
8+
packages providing a machine learning toolbox. The MLJModelRegistry.jl has two functions:
9+
10+
- It hosts the *MLJ Model Registry*, a list of packages providing MLJ interfaces to
11+
machine learning algorithms, together with metadata about those models, such as the type
12+
of data models can operate on.
13+
14+
- It provides software tools for MLJ maintainers to manage the Model Registry, for example
15+
to add the models provided by a new machine learning package providing an MLJ model
16+
interface for those models.
17+
18+
The model registry itself consists of files in [this
19+
folder](https://github.com/JuliaAI/MLJModelRegisry.jl/master/registry/), ordinarily
20+
accessed in one of two ways:
21+
22+
- By MLJ users, through the package
23+
[MLJModels.jl](https://github.com/JuliaAI/MLJModels.jl) which downloads the registry
24+
files as a Julia `Artifact`.
25+
26+
- By developers wishing to update the registry, but using software tools provided by the
27+
MLJModelRegistry.jl package, as described in this documentation.
28+
29+
As it is for MLJ developers, none of the code provided in this repository is part of the
30+
standard MLJ distribution.
31+
32+
## Contents
33+
34+
- [Registering a new model](@ref)
35+
36+
- [Updating metadata for existing models](@ref)
37+
38+
- [Complete list of registry maintenance tools](@ref)
39+
40+
- [Internals](@ref)
41+
42+

docs/src/internals.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Internals
2+
3+
This page contains privates method documentation for maintainers of the
4+
MLJModelRegistry.jl software tools.
5+
6+
```@autodocs
7+
Modules = [MLJModelRegistry, GenericRegistry]
8+
```
9+

src/GenericRegistry.jl

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,27 @@
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 TOML file.
8-
This file is called Metadata.toml and lives in the environment file containing the
9-
environment Project.toml file. Not to be confused with a package registry in the sense of
10-
the standard library, `Pkg`.
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`.
1112
1213
# Methods
1314
14-
- [`GenericRegistry.dependencies(environment)`](@ref): Get a list of the environment's
15+
- `GenericRegistry.dependencies(environment)`: Get a list of the environment's
1516
dependencies (vector of package name strings).
1617
1718
- [`GenericRegistry.run`](@ref): In a new Julia process, load a package (or packages) from
18-
the package environment and execute a Julia expression there; results are returnedn as
19-
`Future` objects to allow asynchronous `run` calls. Useful for generating metadata about
20-
a package.
19+
the package environment and execute a Julia expression there; results are returned as
20+
`Future` objects, to allow asynchronous `run` calls. Useful for generating metadata about
21+
a package.
2122
22-
- [`GenericRegistry.close(future)`](@ref): Shut down the process intitiated by the `run`
23+
- `GenericRegistry.close(future)`: Shut down the process intitiated by the `run`
2324
call that returned `future` (after calling `fetch(future)` to get the result of
2425
evaluation).
2526
26-
- [`GenericRegisry.put`](@ref): Insert an item in the metadata dictionary
27+
- [`GenericRegistry.put`](@ref): Insert an item in the metadata dictionary
2728
2829
- [`GenericRegistry.get`](@ref): Inspect the metadata
2930
@@ -43,7 +44,7 @@ Pkg.status()
4344
# [bd369af6] Tables v1.12.1
4445
4546
Pkg.activate(temp=true)
46-
Pkg.add("MLJModels")
47+
Pkg.add("MLJModelRegistry")
4748
using MLJModels.GenericRegistry
4849
packages = GenericRegistry.dependencies(env)
4950
# 2-element Vector{String}:
@@ -117,7 +118,7 @@ end
117118
# # METHODS
118119

119120
"""
120-
run(ex, pkgs[, environment])
121+
GenericRegistry.run(ex, pkgs[, environment])
121122
122123
In a temporary Julia process, evaluate the expression `ex` after importing the specified
123124
packages, `pkgs`, using an instantiated version of the specified package `environment`,
@@ -160,7 +161,7 @@ end
160161
close(future) = rmprocs(future.where)
161162

162163
"""
163-
put(pkg, value, environment)
164+
GenericRegistry.put(pkg, value, environment)
164165
165166
In the metata dictionary associated with specified package environment, assign `value` to
166167
the key `pkg`.
@@ -178,7 +179,7 @@ function put(pkg, value, env)
178179
end
179180

180181
"""
181-
get(pkg, environment)
182+
GenericRegistry.get(pkg, environment)
182183
183184
Return the metadata associated with package, `pkg`, if it is a dependency of `environment`
184185
and if `pkg` is a key in associated metadata dictionary. Otherwise, return `nothing`.
@@ -193,7 +194,7 @@ function get(pkg, env)
193194
end
194195

195196
"""
196-
gc(environment)
197+
GenericRegistry.gc(environment)
197198
198199
Remove key-value pairs from the metadata dictionary associated with the specified
199200
`environment` in all cases in which the key is not a package dependency. An optional

0 commit comments

Comments
 (0)