Multiple refactorings reformatted#193
Multiple refactorings reformatted#193alyst wants to merge 74 commits intoStructuralEquationModels:develfrom
Conversation
fed3d8b to
981baf1
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #193 +/- ##
==========================================
- Coverage 72.94% 65.34% -7.61%
==========================================
Files 50 60 +10
Lines 2218 2542 +324
==========================================
+ Hits 1618 1661 +43
- Misses 600 881 +281 ☔ View full report in Codecov by Sentry. |
|
Note that for format suggestions to work, you need to add write permissions to GITHUB_TOKEN, that's the output from the action: |
|
Cool! Now we have to decide how to merge this... I see a few possibilities:
I'm not sure what the best solution is, what do you think? |
|
Regarding the format suggestions: I'm not sure why it does not work, it has to do with your PR coming from a fork, because here it works: #194. |
You mean adjusting the triggers in FormatCheck.yml to
My first commits were less invasive and should be easier to review. I think up to Then, once it's reviewed and landed in main or devel, it would be easier to rebase this PR and extract the next smaller PR. And so on. |
Yes, it's here (I changed the base of your PR to
Perfect, thanks! |
|
The formatting check does seem to work now, the previous failure was because it was still triggered by pull_request. |
|
Ah interesting, I re-ran it manually and assumed it would then use the new configuration ^^ |
11a31a6 to
c4af0d7
Compare
c4af0d7 to
e296962
Compare
| rowinds; | ||
| args = (), | ||
| kwargs = NamedTuple(), | ||
| ) where {T <: SemObserved} |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| ) where {T <: SemObserved} | |
| skipmissing_mean(mat::AbstractMatrix) = |
e296962 to
06ecd2b
Compare
06ecd2b to
3ddc4a5
Compare
| else | ||
| has_meanstructure = Val(false) | ||
| M_indices = nothing | ||
| MS = NoMeanStructure | ||
| M_pre = nothing | ||
| μ = nothing | ||
| ∇M = nothing | ||
| end |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| end | |
| !isnothing(M_indices) || throw( | |
| ArgumentError( | |
| "You set `meanstructure = true`, but your model specification contains no mean parameters.", | |
| ), | |
| ) |
| check_round(partable.columns[c][var_indices]; digits = digits) for c in var_columns | ||
| ) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| check_round(partable.columns[c][var_indices]; digits = digits) for c in var_columns | |
| ) | |
| check_round(partable.columns[c][var_indices]; digits = digits) for c in var_columns |
| else | ||
| has_meanstructure = Val(false) | ||
| M_indices = nothing | ||
| MS = NoMeanStructure | ||
| M_pre = nothing |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| M_pre = nothing | |
| !isnothing(M_indices) || throw( | |
| ArgumentError( | |
| "You set `meanstructure = true`, but your model specification contains no mean parameters.", | |
| ), | |
| ) |
341c0e1 to
0ef4c8d
Compare
|
@alyst I'm thinking about making a new release soon, but I don't necessarily want to have 2 breaking releases - do you think we can integrate all changes that break user code soon, and add new features after that for minor releases, or is this unrealistic? |
|
@Maximilian-Stefan-Ernst Sorry for delaying the process. I am currently very busy at work. |
* preallocate matrices for intermediate gradient calculation * call mul!() with these preallocating matrices * annotate mul!() arguments as triangular/symmetric to use faster routines
also warn if params are overwritten
use sparse utils in RAMMatrices
6c30c3d to
987b327
Compare
and move to abstract.jl
it requires that data is Matrix
not used currently
- allow l^alpha for any alpha - specific support for alpha=1 (SemLasso) and alpha=2 (SemRidge) - allow affine transform of parameters before regularization - SemSpec rather then SemImplied in ctor - convert calculation to evaluate!()
987b327 to
7bc2c88
Compare
This is a rebase of a #181 with JuliaFormatter.jl applied to each commit with this command: