Skip to content

Commit 280b1a9

Browse files
authored
Merge pull request #144 from JuliaAI/tweak-doc-header
Tweak doc header
2 parents 62c632f + 76d0b35 commit 280b1a9

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MLJModelInterface"
22
uuid = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
33
authors = ["Thibaut Lienart and Anthony Blaom"]
4-
version = "1.4.1"
4+
version = "1.4.2"
55

66
[deps]
77
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

src/metadata_utils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ something like this:
140140
141141
> `FooRegressor`
142142
>
143-
>Model type for foo regressor, based on [FooRegressorPkg.jl](http://existentialcomics.com/).
143+
>A model type for constructing a foo regressor,
144+
>based on [FooRegressorPkg.jl](http://existentialcomics.com/).
144145
>
145146
>From MLJ, the type can be imported using
146147
>
@@ -209,7 +210,7 @@ function doc_header(SomeModelType)
209210
$name
210211
```
211212
212-
Model type for $human_name, based on
213+
A model type for constructing a $human_name, based on
213214
[$(package_name).jl]($package_url), and implementing the MLJ
214215
model interface.
215216

test/metadata_utils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ comparison =
5252
"""
5353
FooClassifier
5454
55-
Model type for foo classifier, based on
55+
A model type for constructing a foo classifier, based on
5656
[FooClassifierPkg.jl](http://existentialcomics.com/),
5757
and implementing the MLJ model interface.
5858
@@ -155,7 +155,8 @@ end
155155
FooRegressor
156156
```
157157
158-
Model type for foo regressor, based on [FooRegressorPkg.jl](http://existentialcomics.com/).
158+
A model type for constructing a foo regressor, based on
159+
[FooRegressorPkg.jl](http://existentialcomics.com/).
159160
160161
From MLJ, the type can be imported using
161162

test/model_traits.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ M.human_name(::Type{<:S1}) = "silly model"
3232

3333
M.package_name(::Type{<:U1}) = "Bach"
3434
M.package_url(::Type{<:U1}) = "www.did_he_write_565.com"
35-
M.human_name(::Type{<:U1}) = "my model"
35+
M.human_name(::Type{<:U1}) = "funky model"
3636

3737
@testset "traits" begin
3838
ms = S1()
@@ -69,7 +69,7 @@ M.human_name(::Type{<:U1}) = "my model"
6969
U1
7070
```
7171
72-
Model type for my model, based on
72+
A model type for constructing a funky model, based on
7373
[Bach.jl](www.did_he_write_565.com), and implementing the MLJ
7474
model interface.
7575

0 commit comments

Comments
 (0)