@@ -44,29 +44,6 @@ Return the vector of SEM model parameters.
4444"""
4545params (model:: AbstractSem ) = model. params
4646
47- """
48- nparams(semobj)
49-
50- Return the number of SEM model parameters.
51- """
52- nparams (model:: AbstractSem ) = length (params (model))
53-
54- params (model:: AbstractSemSingle ) = params (model. imply)
55- nparams (model:: AbstractSemSingle ) = nparams (model. imply)
56-
57- """
58- param_indices(semobj)
59-
60- Returns a dict of parameter names and their indices in `semobj`.
61-
62- # Examples
63- ```julia
64- parind = param_indices(my_fitted_sem)
65- parind[:param_name]
66- ```
67- """
68- param_indices (semobj) = Dict (par => i for (i, par) in enumerate (params (semobj)))
69-
7047"""
7148 SemLoss(args...; loss_weights = nothing, ...)
7249
@@ -145,9 +122,6 @@ abstract type SemImply{MS <: MeanStructure, HE <: HessianEvaluation} end
145122MeanStructure (:: Type{<:SemImply{MS}} ) where {MS <: MeanStructure } = MS
146123HessianEvaluation (:: Type{<:SemImply{MS, HE}} ) where {MS, HE <: MeanStructure } = HE
147124
148- params (imply:: SemImply ) = params (imply. ram_matrices)
149- nparams (imply:: SemImply ) = nparams (imply. ram_matrices)
150-
151125" Subtype of SemImply for all objects that can serve as the imply field of a SEM and use some form of symbolic precomputation."
152126abstract type SemImplySymbolic{MS, HE} <: SemImply{MS, HE} end
153127
@@ -277,7 +251,6 @@ function SemEnsemble(models...; optimizer = SemOptimizerOptim, weights = nothing
277251end
278252
279253params (ensemble:: SemEnsemble ) = ensemble. params
280- nparams (ensemble:: SemEnsemble ) = length (ensemble. params)
281254
282255"""
283256 n_models(ensemble::SemEnsemble) -> Integer
0 commit comments