Skip to content

Commit 84b02ea

Browse files
authored
Merge pull request #23 from alan-turing-institute/master
merge master into dev
2 parents c8046c5 + fd15e60 commit 84b02ea

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MLJMultivariateStatsInterface"
22
uuid = "1b6a4a23-ba22-4f51-9698-8599985d3728"
33
authors = ["Anthony D. Blaom <[email protected]>", "Thibaut Lienart <[email protected]>", "Okon Samuel <[email protected]>"]
4-
version = "0.1.8"
4+
version = "0.2.1"
55

66
[deps]
77
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"

src/MLJMultivariateStatsInterface.jl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,19 @@ include("utils.jl")
123123
# ===================================================================
124124
# List of all models interfaced
125125
const MODELS = (
126-
LinearRegressor, RidgeRegressor, PCA, KernelPCA, ICA, LDA,
127-
BayesianLDA, SubspaceLDA,
128-
BayesianSubspaceLDA, FactorAnalysis, PPCA
126+
LinearRegressor,
127+
MultitargetLinearRegressor,
128+
RidgeRegressor,
129+
MultitargetRidgeRegressor,
130+
PCA,
131+
KernelPCA,
132+
ICA,
133+
LDA,
134+
BayesianLDA,
135+
SubspaceLDA,
136+
BayesianSubspaceLDA,
137+
FactorAnalysis,
138+
PPCA
129139
)
130140

131141
# ====================================================================

src/models/discriminant_analysis.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ end
7070
function _check_lda_data(model, X, y)
7171
class_list = MMI.classes(y[1]) # Class list containing entries in pool of y.
7272
nclasses = length(class_list)
73-
# Class list containing unique entries in y.
74-
classes_seen = filter(in(unique(y)), class_list)
73+
# Class list containing entries in seen in y.
74+
classes_seen = filter(in(y), class_list)
7575
nc = length(classes_seen) # Number of classes in pool of y.
7676
integers_seen = MMI.int(classes_seen)
7777
# NOTE: copy/transpose.

0 commit comments

Comments
 (0)