Skip to content

Commit a054704

Browse files
authored
Merge pull request #64 from alan-turing-institute/dev
For a 0.3.3 release
2 parents aba83ae + 3261a4b commit a054704

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
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 = "0.3.2"
4+
version = "0.3.3"
55

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

src/MLJModelInterface.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export LightInterface, FullInterface
1414
# MLJ model hierarchy
1515
export MLJType, Model, Supervised, Unsupervised,
1616
Probabilistic, Deterministic, Interval, Static,
17-
UnivariateFinite
17+
UnivariateFinite,
18+
JointProbabilistic
1819

1920
# parameter_inspection:
2021
export params
@@ -88,6 +89,8 @@ abstract type Interval <: Supervised end
8889

8990
abstract type Static <: Unsupervised end
9091

92+
abstract type JointProbabilistic <: Probabilistic end
93+
9194
# ------------------------------------------------------------------------
9295
# includes
9396

src/model_api.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ probabilistic supervised models may overload `predict_median`
4444
"""
4545
function predict_median end
4646

47+
"""
48+
`JointProbabilistic` supervised models MUST overload `predict_joint`.
49+
50+
`Probabilistic` supervised models MAY overload `predict_joint`.
51+
"""
52+
function predict_joint end
53+
4754
"""
4855
unsupervised methods must implement the `transform` operation
4956
"""

0 commit comments

Comments
 (0)