Skip to content

Commit c9aa26e

Browse files
committed
replace pratio -> variance_ratio
1 parent 12f9ca2 commit c9aa26e

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
@@ -22,7 +22,7 @@ $PCA_DESCR
2222
@mlj_model mutable struct PCA <: MMI.Unsupervised
2323
maxoutdim::Int = 0::(_ ≥ 0)
2424
method::Symbol = :auto::(_ in (:auto, :cov, :svd))
25-
pratio::Float64 = 0.99::(0.0 < _ ≤ 1.0)
25+
variance_ratio::Float64 = 0.99::(0.0 < _ ≤ 1.0)
2626
mean::Union{Nothing, Real, Vector{Float64}} = nothing::(_check_typeof_mean(_))
2727
end
2828

@@ -37,7 +37,7 @@ function MMI.fit(model::PCA, verbosity::Int, X)
3737
fitresult = MS.fit(
3838
MS.PCA, Xarray';
3939
method=model.method,
40-
pratio=model.pratio,
40+
pratio=model.variance_ratio,
4141
maxoutdim=maxoutdim,
4242
mean=model.mean
4343
)

0 commit comments

Comments
 (0)