diff --git a/Project.toml b/Project.toml index 9bf5739..03726c3 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MLJModelRegistryTools" uuid = "0a96183e-380b-4aa6-be10-c555140810f2" authors = ["Anthony D. Blaom "] -version = "0.1.1" +version = "0.1.2" [deps] Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" @@ -15,7 +15,7 @@ Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb" Distributed = "1" InteractiveUtils = "1" MLJModelInterface = "1.12" -MLJModels = "0.17" +MLJModels = "0.18" OrderedCollections = "1.8" Pkg = "1" Random = "1" diff --git a/src/MLJModelRegistryTools.jl b/src/MLJModelRegistryTools.jl index d92ce42..ab5426c 100644 --- a/src/MLJModelRegistryTools.jl +++ b/src/MLJModelRegistryTools.jl @@ -3,6 +3,11 @@ Module providing tools for managing the MLJ Model Registry. To modify the registry: +- Make sure the MLJModelRegistryTools.jl `[compat]` entry for MLJModels is up to date. If + not you will need to update it. (Generally you cannot update the model registry and make + breaking releases of MLJModels at the same time. If this is absolutely necessary, you + will need to locally `dev` both packages.) + - Create a local clone of [MLJModels.jl](https://github.com/JuliaAI/MLJModels.jl), which hosts the registry. After making changes, you will be making a MLJModels.jl pull request. @@ -16,9 +21,12 @@ Module providing tools for managing the MLJ Model Registry. To modify the regist - Point the `MLJModelRegistryTools` module to the location of the registry itself within your MLJModels.jl clone, using `setpath(path_to_registry)`, as in - `setpath("MyPkgs/MLJModels.jl/src/registry")`. + `setpath("MyPkgs/MLJModels.jl/src/registry")`. To check this worked, try + `MLJRegistryTools.get("MLJBase")`, to see the MLJBase.jl models. -- To add or update the metadata associated with a package, run [`update(pkg)`](@ref). +- To add or update the metadata associated with a package, run [`update(pkg)`](@ref), as + in `update("MLJTransforms"). Ensure that every model provided by the package appears as a + key in the returned value. Omissions may indicate a bad `load_path`. - Assuming this is successful, update the metadata for *all* packages in the registry by running [`update()`](@ref).