SciML / SciMLTutorials.jl

Tutorials for doing scientific machine learning (SciML) and high-performance differential equation solving with open source software.
https://tutorials.sciml.ai
Other
713 stars 127 forks source link

No constructors defined #544

Closed lakshaya17 closed 1 year ago

lakshaya17 commented 1 year ago

I am trying to use Koopman() but getting this error.

MethodError: no constructors have been defined for Any

Some of the types have been truncated in the stacktrace for improved reading. To emit complete information in the stack trace, evaluate TruncatedStacktraces.VERBOSE[] = true and re-run the code.

Stacktrace: [1] _broadcast_getindex_evalf @ .\broadcast.jl:670 [inlined] [2] _broadcast_getindex @ .\broadcast.jl:643 [inlined] [3] getindex @ .\broadcast.jl:597 [inlined] [4] copy @ .\broadcast.jl:899 [inlined] [5] materialize(bc::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1}, Nothing, Type{Any}, Tuple{SubArray{Float64, 1, Vector{Float64}, Tuple{Vector{Int64}}, false}}}) @ Base.Broadcast .\broadcast.jl:860 [6] expectation(g::typeof(loss), prob::ODEProblem{true,Vector{Float64},Tuple{Float64, Float64},…}, u0::Vector{Float64}, p::Vector{Any}, expalg::Koopman, args::Tsit5{Static.False,…}; u0_CoV::DiffEqUncertainty.var"#18#31", p_CoV::DiffEqUncertainty.var"#19#32", maxiters::Int64, batch::Int64, quadalg::HCubatureJL{typeof(LinearAlgebra.norm)}, ireltol::Float64, iabstol::Float64, nout::Int64, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ DiffEqUncertainty C:\Users\INK PLUS.julia\packages\DiffEqUncertainty\OubKP\src\koopman.jl:98 [7] expectation(g::Function, prob::ODEProblem{true,Vector{Float64},Tuple{Float64, Float64},…}, u0::Vector{Float64}, p::Vector{Any}, expalg::Koopman, args::Tsit5{Static.False,…}) @ DiffEqUncertainty C:\Users\INK PLUS.julia\packages\DiffEqUncertainty\OubKP\src\koopman.jl:12 [8] top-level scope @ .\In[28]:8

Can anybody help me with this?

Thanks in advance.

ChrisRackauckas commented 1 year ago

What are you running? Note that DiffEqUncertainty was deprecated for SciMLExpectations a long time ago, and these tutorials were split up into the repos. How did you find this?

https://docs.sciml.ai/SciMLSensitivity/stable/getting_started/

lakshaya17 commented 1 year ago

Oh I see. I am trying to run a spacecraft dynamical system with uncertainties in the initial condition. I have been following the DiffEqUncertainty module for a while now but never checked the update. Thank you so much. I'll look into it.

ChrisRackauckas commented 1 year ago

Cool, and I realized that we never did a release of this repo's deprecation, so https://docs.sciml.ai/SciMLTutorialsOutput/dev/ that will soon be the stable. Any questions should be on the respective repo.