Skip to content

Commit e36ebf7

Browse files
committed
in ICA rename k -> outdim
1 parent e47eec9 commit e36ebf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/decomposition_models.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ $ICA_DESCR
155155
`Matrix{<:Real}` is used.
156156
"""
157157
@mlj_model mutable struct ICA <: MMI.Unsupervised
158-
k::Int = 0::(_ ≥ 0)
158+
outdim::Int = 0::(_ ≥ 0)
159159
alg::Symbol = :fastica::(_ in (:fastica,))
160160
fun::Symbol = :tanh::(_ in (:tanh, :gaus))
161161
do_whiten::Bool = true
@@ -174,7 +174,7 @@ function MMI.fit(model::ICA, verbosity::Int, X)
174174
Xarray = MMI.matrix(X)
175175
n, p = size(Xarray)
176176
m = min(n, p)
177-
k = ifelse(model.k m, model.k, m)
177+
k = ifelse(model.outdim m, model.outdim, m)
178178
fitresult = MS.fit(
179179
MS.ICA, Xarray', k;
180180
alg=model.alg,

0 commit comments

Comments
 (0)