Skip to content

fixed LDA-unfolddecode finally :-) #19

fixed LDA-unfolddecode finally :-)

fixed LDA-unfolddecode finally :-) #19

Triggered via push May 11, 2024 13:09
Status Failure
Total duration 14m 52s
Artifacts

CI.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L44
failed to run `@example` block in src/literate/HowTo/overlapcorrectedLDA_options.md:52-61 ```@example overlapcorrectedLDA_options ldaModel = LDA(method=:whiten, cov_w=SimpleCovariance(), cov_b=SimpleCovariance(), regcoef=1e-3) uf_lda = fit(UnfoldDecodingModel, des, evt, dat, ldaModel, "eventA" => :condition; nfolds=2,# only 2 folds to speed up computation UnfoldFitkwargs=(; solver=customsolver), #customer solver for fun eventcolumn=:event, # actually the default, but maybe your event dataframe has a different name? multithreading=false) # who needs speed anyway :shrug: plot_erp(coeftable(uf_lda)) ``` exception = MethodError: no method matching basisname(::Unfold.UnfoldLinearModelContinuousTime{Float64}) Closest candidates are: basisname(!Matched::Vector{<:StatsModels.FormulaTerm}) @ Unfold ~/.julia/packages/Unfold/qjDWM/src/basisfunctions.jl:221 Stacktrace: [1] singletrials(dat::Matrix{Float64}, uf_train::Unfold.UnfoldLinearModelContinuousTime{Float64}, tbltrain::DataFrames.SubDataFrame{DataFrames.DataFrame, DataFrames.Index, Vector{Int64}}, target_eventname::String, eventcolumn::Symbol) @ UnfoldDecode ~/work/UnfoldDecode.jl/UnfoldDecode.jl/src/overlap_corrected.jl:10 [2] fit(UnfoldDecodingModel::Type{UnfoldDecodingModel}, design::Vector{Pair{String, Tuple{StatsModels.FormulaTerm{StatsModels.ConstantTerm{Int64}}, Unfold.FIRBasis}}}, tbl::DataFrames.DataFrame, dat::Matrix{Float64}, model::MLJMultivariateStatsInterface.LDA, target::Pair{String, Symbol}; nfolds::Int64, eventcolumn::Symbol, UnfoldFitkwargs::@NamedTuple{solver::Main.__atexample__named__overlapcorrectedLDA_options.var"#1#2"}, multithreading::Bool) @ UnfoldDecode ~/work/UnfoldDecode.jl/UnfoldDecode.jl/src/fit.jl:44 [3] top-level scope @ overlapcorrectedLDA_options.md:55 [4] eval @ ./boot.jl:385 [inlined] [5] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [6] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [7] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [8] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161 [9] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [10] with_logger @ ./logging.jl:627 [inlined] [11] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer) @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158 [12] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation: ../../../.julia/packages/Documenter/CJeWX/src/utilities/utilities.jl#L44
failed to run `@example` block in src/literate/tutorials/overlapcorrectedLDA.md:45-50 ```@example overlapcorrectedLDA using MLJ, MultivariateStats, MLJMultivariateStatsInterface LDA = @load LDA pkg = MultivariateStats uf_lda = fit(UnfoldDecodingModel, des, evt, dat, LDA(), Any => :condition; nfolds=2) # 2 folds to speed up computation plot_erp(coeftable(uf_lda)) ``` exception = MethodError: no method matching basisname(::Unfold.UnfoldLinearModelContinuousTime{Float64}) Closest candidates are: basisname(!Matched::Vector{<:StatsModels.FormulaTerm}) @ Unfold ~/.julia/packages/Unfold/qjDWM/src/basisfunctions.jl:221 Stacktrace: [1] singletrials(dat::Matrix{Float64}, uf_train::Unfold.UnfoldLinearModelContinuousTime{Float64}, tbltrain::DataFrames.SubDataFrame{DataFrames.DataFrame, DataFrames.Index, Vector{Int64}}, target_eventname::Type, eventcolumn::Symbol) @ UnfoldDecode ~/work/UnfoldDecode.jl/UnfoldDecode.jl/src/overlap_corrected.jl:10 [2] fit(UnfoldDecodingModel::Type{UnfoldDecodingModel}, design::Vector{Pair{DataType, Tuple{StatsModels.FormulaTerm{StatsModels.ConstantTerm{Int64}, Tuple{StatsModels.ConstantTerm{Int64}, StatsModels.Term, StatsModels.Term}}, Unfold.FIRBasis}}}, tbl::DataFrames.DataFrame, dat::Matrix{Float64}, model::MLJMultivariateStatsInterface.LDA, target::Pair{DataType, Symbol}; nfolds::Int64, eventcolumn::Symbol, UnfoldFitkwargs::@NamedTuple{}, multithreading::Bool) @ UnfoldDecode ~/work/UnfoldDecode.jl/UnfoldDecode.jl/src/fit.jl:44 [3] top-level scope @ overlapcorrectedLDA.md:48 [4] eval @ ./boot.jl:385 [inlined] [5] #58 @ ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:754 [inlined] [6] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [7] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:753 [8] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161 [9] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:515 [10] with_logger @ ./logging.jl:627 [inlined] [11] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer) @ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158 [12] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/CJeWX/src/expander_pipeline.jl:752
Documentation
Process completed with exit code 1.
Julia nightly - ubuntu-latest - x64 - push
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Documentation
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, julia-actions/setup-julia@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.