Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Probematic functions:
- ########################################################################
- # Inside "helper_functions.jl"
- ######################################################################
- function split_train_test(m, ratio::Number = .2, seed::Int64 = 1234; skip_vars::Int = 0)
- if(typeof(m) == DataFrame)
- m_tmp = df_m(m[:, (skip_vars + 1):end])
- else
- m_tmp = m[:, (skip_vars + 1):end]
- end
- Random.seed!(seed)
- test_indicator = rand(Bernoulli(ratio), size(m_tmp, 1))
- train = m_tmp[test_indicator .== 0, :];
- test = m_tmp[test_indicator .== 1, :]
- return train, test
- end
- Error:
- syntax: incomplete: "function" at /Users/AndreyVedishchev/Desktop/IMBI/helper_functions.jl:242 requires end
- top-level scope at helper_functions.jl:242
- function brier_action(y_mat::Array{Float64,2}, p̂_mat::Array{Float64,2}; log_it::Bool = false)
- n, p = map(x->convert(Int64, x), size(y_mat))
- brier_scores = zeros(n, p)
- if(log_it == false)
- for n_col in 1:n
- for n_row in 1:p
- brier_scores[n_col,n_row] = (p̂_mat[n_col,n_row] - y_mat[n_col,n_row])^2
- end
- end
- end
- if(log_it == true)
- for n_col in 1:n
- for n_row in 1:p
- brier_scores[n_col,n_row] = (log(p̂_mat[n_col,n_row] + 1) - log(y_mat[n_col,n_row] + 1))^2
- end
- end
- end
- person_brier = mapslices(x->mean(x), brier_scores, dims = 2)[:,1] # sum hor and divide by p
- variable_brier = mapslices(x->mean(x), brier_scores, dims = 1)[1,:] # sum vertical and divide by n
- quick_summary = Dict("pPer" => person_brier, "pVar" => variable_brier)
- median_var = mean(quick_summary["pVar"])
- return median_var, quick_summary, brier_scores
- end
- Error:
- syntax: incomplete: "function" at /Users/AndreyVedishchev/Desktop/IMBI/helper_functions.jl:417 requires end
- top-level scope at helper_functions.jl:417
- ########################################################################
- # Inside "reconstruct_resilience_types.jl"
- ######################################################################
- for i=1:n # @Andrey: this is the ugly loop I mentioned
- # i = findfirst(x -> x==0, rtype) # resilient, debugging
- # i = findfirst(x -> x==1, rtype) # not resilient, debugging
- # idea: rand(Bernoulli(0.2), max_obs) # external kicks to the smooth stress level?
- curp = rtype[i] == 1 ? p1 : p0
- prob = ODEProblem(mydiff,u0,(0f0, Float32(nt)),curp)
- evalt = Float32.(sort([0.0,rand(sampling_freq-1)*nt...]))
- res = solve(prob,tstops=tstops,dense=false,saveat=evalt,callback=cb)
- picku = res.u[map(arg -> arg in evalt,res.t)]
- z1 = Float32.(map(arg -> arg[1],picku) .+ rand(size(picku,1)) .* 0.05)
- z2 = Float32.(map(arg -> arg[2],picku) .+ rand(size(picku,1)) .* 0.05)
- ztotal1[((i-1)*sampling_freq+1):(i*sampling_freq)] .= z1
- ztotal2[((i-1)*sampling_freq+1):(i*sampling_freq)] .= z2
- xmat1 = round.(exp.(randn(sampling_freq, nx1) .* 0.25 .+ z1.*0.9)); # in order to bring it close to its natural range and to introduce some variance
- xmat2 = round.(exp.(randn(sampling_freq, nx2) .* 0.25 .+ z2.*0.9)); # be careful that it is on a reasonable scale
- xmat1 = map(x -> ifelse(x>4.0,4.0,x), xmat1) # make sure values stay in the right range
- xmat2 = map(x -> ifelse(x>7,7.0,x), xmat2)
- # heatmap(xmat1,clims=(1.0,4.0))
- # heatmap(xmat1)
- # heatmap(xmat2)
- xtotal1[((i-1)*sampling_freq+1):(i*sampling_freq),:] .= xmat1;
- xtotal2[((i-1)*sampling_freq+1):(i*sampling_freq),:] .= xmat2;
- push!(idat,((Float32.(xmat1'),fill(1.0f0,sampling_freq),Float32.(xmat2'),fill(1.0f0,sampling_freq),evalt,Float32.(collect(0:(sampling_freq-1)))),))
- if i == 1
- global case1 = [
- (Float32.(xmat1'), # X_ghq
- fill(1.0f0,sampling_freq), # w_ghq
- Float32.(xmat2'), # X_dh
- fill(1.0f0,sampling_freq), # w_DH
- evalt, # t
- Float32.(collect(0:(sampling_freq-1))), # obs
- )
- ]
- elseif i == 2
- global case2 = [
- (Float32.(xmat1'), # X_ghq
- fill(1.0f0,sampling_freq), # w_ghq
- Float32.(xmat2'), # X_dh
- fill(1.0f0,sampling_freq), # w_DH
- evalt, # t
- Float32.(collect(0:(sampling_freq-1))), # obs
- )
- ]
- global idat2 = [case1, case2]
- else
- push!(idat2, [
- (Float32.(xmat1'), # X_ghq
- fill(1.0f0,sampling_freq), # w_ghq
- Float32.(xmat2'), # X_dh
- fill(1.0f0,sampling_freq), # w_DH
- evalt, # t
- Float32.(collect(0:(sampling_freq-1))), # obs
- )
- ]);
- end
- end
- Error:
- LoadError: UndefVarError: localstops not defined
- in expression starting at /Users/AndreyVedishchev/Desktop/IMBI/reconstruct_resilience_types.jl:79
- localcondition(::Array{Float32,1}, ::Float32, ::OrdinaryDiffEq.ODEIntegrator{CompositeAlgorithm{Tuple{Vern9,Rodas5{0,false,DefaultLinSolve,DataType}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},true,Array{Float32,1},Float32,Array{Float64,1},Float32,Float32,Float32,Array{Array{Float32,1},1},OrdinaryDiffEq.ODECompositeSolution{Float32,2,Array{Array{Float32,1},1},Nothing,Nothing,Array{Float32,1},Array{Array{Array{Float32,1},1},1},ODEProblem{Array{Float32,1},Tuple{Float32,Float32},true,Array{Float64,1},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}},DiffEqBase.StandardODEProblem},CompositeAlgorithm{Tuple{Vern9,Rodas5{0,false,DefaultLinSolve,DataType}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},OrdinaryDiffEq.CompositeInterpolationData{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Array{Float32,1},1},Array{Float32,1},Array{Array{Array{Float32,1},1},1},OrdinaryDiffEq.CompositeCache{Tuple{OrdinaryDiffEq.Vern9Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},OrdinaryDiffEq.Vern9Tableau{Float32,Float32}},OrdinaryDiffEq.Rosenbrock5Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},Array{Float32,2},Array{Float32,2},OrdinaryDiffEq.Rodas5Tableau{Float32,Float32},DiffEqDiffTools.TimeGradientWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float32,1},Array{Float64,1}},DiffEqDiffTools.UJacobianWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float32,Array{Float64,1}},DefaultLinSolve,DiffEqDiffTools.JacobianCache{Array{Float32,1},Array{Float32,1},Array{Float32,1},UnitRange{Int64},Nothing,Val{:forward},Float32},DiffEqDiffTools.GradientCache{Nothing,Array{Float32,1},Array{Float32,1},Val{:forward},Float32,Val{true}}}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}}},DiffEqBase.DEStats},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},OrdinaryDiffEq.CompositeCache{Tuple{OrdinaryDiffEq.Vern9Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},OrdinaryDiffEq.Vern9Tableau{Float32,Float32}},OrdinaryDiffEq.Rosenbrock5Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},Array{Float32,2},Array{Float32,2},OrdinaryDiffEq.Rodas5Tableau{Float32,Float32},DiffEqDiffTools.TimeGradientWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float32,1},Array{Float64,1}},DiffEqDiffTools.UJacobianWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float32,Array{Float64,1}},DefaultLinSolve,DiffEqDiffTools.JacobianCache{Array{Float32,1},Array{Float32,1},Array{Float32,1},UnitRange{Int64},Nothing,Val{:forward},Float32},DiffEqDiffTools.GradientCache{Nothing,Array{Float32,1},Array{Float32,1},Val{:forward},Float32,Val{true}}}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},OrdinaryDiffEq.DEOptions{Float32,Float32,Float32,Float32,typeof(DiffEqBase.ODE_DEFAULT_NORM),typeof(LinearAlgebra.opnorm),CallbackSet{Tuple{},Tuple{DiscreteCallback{typeof(localcondition),typeof(localaffect!),typeof(DiffEqBase.INITIALIZE_DEFAULT)}}},typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN),typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE),typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK),DataStructures.BinaryHeap{Float32,DataStructures.LessThan},DataStructures.BinaryHeap{Float32,DataStructures.LessThan},Nothing,Nothing,Int64,Array{Float64,1},Array{Float32,1},Array{Float32,1}},Array{Float32,1},Float32,Nothing}) at node_vae_functions.jl:109
- apply_discrete_callback! at callbacks.jl:710 [inlined]
- handle_callbacks!(::OrdinaryDiffEq.ODEIntegrator{CompositeAlgorithm{Tuple{Vern9,Rodas5{0,false,DefaultLinSolve,DataType}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},true,Array{Float32,1},Float32,Array{Float64,1},Float32,Float32,Float32,Array{Array{Float32,1},1},OrdinaryDiffEq.ODECompositeSolution{Float32,2,Array{Array{Float32,1},1},Nothing,Nothing,Array{Float32,1},Array{Array{Array{Float32,1},1},1},ODEProblem{Array{Float32,1},Tuple{Float32,Float32},true,Array{Float64,1},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}},DiffEqBase.StandardODEProblem},CompositeAlgorithm{Tuple{Vern9,Rodas5{0,false,DefaultLinSolve,DataType}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},OrdinaryDiffEq.CompositeInterpolationData{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Array{Float32,1},1},Array{Float32,1},Array{Array{Array{Float32,1},1},1},OrdinaryDiffEq.CompositeCache{Tuple{OrdinaryDiffEq.Vern9Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},OrdinaryDiffEq.Vern9Tableau{Float32,Float32}},OrdinaryDiffEq.Rosenbrock5Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},Array{Float32,2},Array{Float32,2},OrdinaryDiffEq.Rodas5Tableau{Float32,Float32},DiffEqDiffTools.TimeGradientWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float32,1},Array{Float64,1}},DiffEqDiffTools.UJacobianWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float32,Array{Float64,1}},DefaultLinSolve,DiffEqDiffTools.JacobianCache{Array{Float32,1},Array{Float32,1},Array{Float32,1},UnitRange{Int64},Nothing,Val{:forward},Float32},DiffEqDiffTools.GradientCache{Nothing,Array{Float32,1},Array{Float32,1},Val{:forward},Float32,Val{true}}}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}}},DiffEqBase.DEStats},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},OrdinaryDiffEq.CompositeCache{Tuple{OrdinaryDiffEq.Vern9Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},OrdinaryDiffEq.Vern9Tableau{Float32,Float32}},OrdinaryDiffEq.Rosenbrock5Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},Array{Float32,2},Array{Float32,2},OrdinaryDiffEq.Rodas5Tableau{Float32,Float32},DiffEqDiffTools.TimeGradientWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float32,1},Array{Float64,1}},DiffEqDiffTools.UJacobianWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float32,Array{Float64,1}},DefaultLinSolve,DiffEqDiffTools.JacobianCache{Array{Float32,1},Array{Float32,1},Array{Float32,1},UnitRange{Int64},Nothing,Val{:forward},Float32},DiffEqDiffTools.GradientCache{Nothing,Array{Float32,1},Array{Float32,1},Val{:forward},Float32,Val{true}}}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},OrdinaryDiffEq.DEOptions{Float32,Float32,Float32,Float32,typeof(DiffEqBase.ODE_DEFAULT_NORM),typeof(LinearAlgebra.opnorm),CallbackSet{Tuple{},Tuple{DiscreteCallback{typeof(localcondition),typeof(localaffect!),typeof(DiffEqBase.INITIALIZE_DEFAULT)}}},typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN),typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE),typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK),DataStructures.BinaryHeap{Float32,DataStructures.LessThan},DataStructures.BinaryHeap{Float32,DataStructures.LessThan},Nothing,Nothing,Int64,Array{Float64,1},Array{Float32,1},Array{Float32,1}},Array{Float32,1},Float32,Nothing}) at integrator_utils.jl:259
- _loopfooter!(::OrdinaryDiffEq.ODEIntegrator{CompositeAlgorithm{Tuple{Vern9,Rodas5{0,false,DefaultLinSolve,DataType}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},true,Array{Float32,1},Float32,Array{Float64,1},Float32,Float32,Float32,Array{Array{Float32,1},1},OrdinaryDiffEq.ODECompositeSolution{Float32,2,Array{Array{Float32,1},1},Nothing,Nothing,Array{Float32,1},Array{Array{Array{Float32,1},1},1},ODEProblem{Array{Float32,1},Tuple{Float32,Float32},true,Array{Float64,1},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}},DiffEqBase.StandardODEProblem},CompositeAlgorithm{Tuple{Vern9,Rodas5{0,false,DefaultLinSolve,DataType}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},OrdinaryDiffEq.CompositeInterpolationData{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Array{Float32,1},1},Array{Float32,1},Array{Array{Array{Float32,1},1},1},OrdinaryDiffEq.CompositeCache{Tuple{OrdinaryDiffEq.Vern9Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},OrdinaryDiffEq.Vern9Tableau{Float32,Float32}},OrdinaryDiffEq.Rosenbrock5Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},Array{Float32,2},Array{Float32,2},OrdinaryDiffEq.Rodas5Tableau{Float32,Float32},DiffEqDiffTools.TimeGradientWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float32,1},Array{Float64,1}},DiffEqDiffTools.UJacobianWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float32,Array{Float64,1}},DefaultLinSolve,DiffEqDiffTools.JacobianCache{Array{Float32,1},Array{Float32,1},Array{Float32,1},UnitRange{Int64},Nothing,Val{:forward},Float32},DiffEqDiffTools.GradientCache{Nothing,Array{Float32,1},Array{Float32,1},Val{:forward},Float32,Val{true}}}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}}},DiffEqBase.DEStats},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},OrdinaryDiffEq.CompositeCache{Tuple{OrdinaryDiffEq.Vern9Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},OrdinaryDiffEq.Vern9Tableau{Float32,Float32}},OrdinaryDiffEq.Rosenbrock5Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},Array{Float32,2},Array{Float32,2},OrdinaryDiffEq.Rodas5Tableau{Float32,Float32},DiffEqDiffTools.TimeGradientWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float32,1},Array{Float64,1}},DiffEqDiffTools.UJacobianWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float32,Array{Float64,1}},DefaultLinSolve,DiffEqDiffTools.JacobianCache{Array{Float32,1},Array{Float32,1},Array{Float32,1},UnitRange{Int64},Nothing,Val{:forward},Float32},DiffEqDiffTools.GradientCache{Nothing,Array{Float32,1},Array{Float32,1},Val{:forward},Float32,Val{true}}}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},OrdinaryDiffEq.DEOptions{Float32,Float32,Float32,Float32,typeof(DiffEqBase.ODE_DEFAULT_NORM),typeof(LinearAlgebra.opnorm),CallbackSet{Tuple{},Tuple{DiscreteCallback{typeof(localcondition),typeof(localaffect!),typeof(DiffEqBase.INITIALIZE_DEFAULT)}}},typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN),typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE),typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK),DataStructures.BinaryHeap{Float32,DataStructures.LessThan},DataStructures.BinaryHeap{Float32,DataStructures.LessThan},Nothing,Nothing,Int64,Array{Float64,1},Array{Float32,1},Array{Float32,1}},Array{Float32,1},Float32,Nothing}) at integrator_utils.jl:202
- loopfooter! at integrator_utils.jl:166 [inlined]
- solve!(::OrdinaryDiffEq.ODEIntegrator{CompositeAlgorithm{Tuple{Vern9,Rodas5{0,false,DefaultLinSolve,DataType}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},true,Array{Float32,1},Float32,Array{Float64,1},Float32,Float32,Float32,Array{Array{Float32,1},1},OrdinaryDiffEq.ODECompositeSolution{Float32,2,Array{Array{Float32,1},1},Nothing,Nothing,Array{Float32,1},Array{Array{Array{Float32,1},1},1},ODEProblem{Array{Float32,1},Tuple{Float32,Float32},true,Array{Float64,1},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}},DiffEqBase.StandardODEProblem},CompositeAlgorithm{Tuple{Vern9,Rodas5{0,false,DefaultLinSolve,DataType}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},OrdinaryDiffEq.CompositeInterpolationData{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Array{Float32,1},1},Array{Float32,1},Array{Array{Array{Float32,1},1},1},OrdinaryDiffEq.CompositeCache{Tuple{OrdinaryDiffEq.Vern9Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},OrdinaryDiffEq.Vern9Tableau{Float32,Float32}},OrdinaryDiffEq.Rosenbrock5Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},Array{Float32,2},Array{Float32,2},OrdinaryDiffEq.Rodas5Tableau{Float32,Float32},DiffEqDiffTools.TimeGradientWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float32,1},Array{Float64,1}},DiffEqDiffTools.UJacobianWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float32,Array{Float64,1}},DefaultLinSolve,DiffEqDiffTools.JacobianCache{Array{Float32,1},Array{Float32,1},Array{Float32,1},UnitRange{Int64},Nothing,Val{:forward},Float32},DiffEqDiffTools.GradientCache{Nothing,Array{Float32,1},Array{Float32,1},Val{:forward},Float32,Val{true}}}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}}},DiffEqBase.DEStats},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},OrdinaryDiffEq.CompositeCache{Tuple{OrdinaryDiffEq.Vern9Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},OrdinaryDiffEq.Vern9Tableau{Float32,Float32}},OrdinaryDiffEq.Rosenbrock5Cache{Array{Float32,1},Array{Float32,1},Array{Float32,1},Array{Float32,2},Array{Float32,2},OrdinaryDiffEq.Rodas5Tableau{Float32,Float32},DiffEqDiffTools.TimeGradientWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Array{Float32,1},Array{Float64,1}},DiffEqDiffTools.UJacobianWrapper{ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Float32,Array{Float64,1}},DefaultLinSolve,DiffEqDiffTools.JacobianCache{Array{Float32,1},Array{Float32,1},Array{Float32,1},UnitRange{Int64},Nothing,Val{:forward},Float32},DiffEqDiffTools.GradientCache{Nothing,Array{Float32,1},Array{Float32,1},Val{:forward},Float32,Val{true}}}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}},OrdinaryDiffEq.DEOptions{Float32,Float32,Float32,Float32,typeof(DiffEqBase.ODE_DEFAULT_NORM),typeof(LinearAlgebra.opnorm),CallbackSet{Tuple{},Tuple{DiscreteCallback{typeof(localcondition),typeof(localaffect!),typeof(DiffEqBase.INITIALIZE_DEFAULT)}}},typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN),typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE),typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK),DataStructures.BinaryHeap{Float32,DataStructures.LessThan},DataStructures.BinaryHeap{Float32,DataStructures.LessThan},Nothing,Nothing,Int64,Array{Float64,1},Array{Float32,1},Array{Float32,1}},Array{Float32,1},Float32,Nothing}) at solve.jl:374
- __solve(::ODEProblem{Array{Float32,1},Tuple{Float32,Float32},true,Array{Float64,1},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}},DiffEqBase.StandardODEProblem}, ::CompositeAlgorithm{Tuple{Vern9,Rodas5{0,false,DefaultLinSolve,DataType}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}}; kwargs::Base.Iterators.Pairs{Symbol,Any,NTuple{5,Symbol},NamedTuple{(:default_set, :tstops, :dense, :saveat, :callback),Tuple{Bool,Array{Float64,1},Bool,Array{Float32,1},DiscreteCallback{typeof(localcondition),typeof(localaffect!),typeof(DiffEqBase.INITIALIZE_DEFAULT)}}}}) at solve.jl:5
- (::DiffEqBase.var"#__solve##kw")(::NamedTuple{(:default_set, :tstops, :dense, :saveat, :callback),Tuple{Bool,Array{Float64,1},Bool,Array{Float32,1},DiscreteCallback{typeof(localcondition),typeof(localaffect!),typeof(DiffEqBase.INITIALIZE_DEFAULT)}}}, ::typeof(DiffEqBase.__solve), ::ODEProblem{Array{Float32,1},Tuple{Float32,Float32},true,Array{Float64,1},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}},DiffEqBase.StandardODEProblem}, ::CompositeAlgorithm{Tuple{Vern9,Rodas5{0,false,DefaultLinSolve,DataType}},AutoSwitch{Vern9,Rodas5{0,false,DefaultLinSolve,DataType},Rational{Int64},Int64}}) at solve.jl:4
- __solve(::ODEProblem{Array{Float32,1},Tuple{Float32,Float32},true,Array{Float64,1},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}},DiffEqBase.StandardODEProblem}, ::Nothing; default_set::Bool, kwargs::Base.Iterators.Pairs{Symbol,Any,NTuple{4,Symbol},NamedTuple{(:tstops, :dense, :saveat, :callback),Tuple{Array{Float64,1},Bool,Array{Float32,1},DiscreteCallback{typeof(localcondition),typeof(localaffect!),typeof(DiffEqBase.INITIALIZE_DEFAULT)}}}}) at default_solve.jl:15
- __solve at default_solve.jl:11 [inlined]
- #__solve#1 at default_solve.jl:5 [inlined]
- __solve at default_solve.jl:2 [inlined]
- solve_call(::ODEProblem{Array{Float32,1},Tuple{Float32,Float32},true,Array{Float64,1},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}},DiffEqBase.StandardODEProblem}; kwargs::Base.Iterators.Pairs{Symbol,Any,NTuple{4,Symbol},NamedTuple{(:tstops, :dense, :saveat, :callback),Tuple{Array{Float64,1},Bool,Array{Float32,1},DiscreteCallback{typeof(localcondition),typeof(localaffect!),typeof(DiffEqBase.INITIALIZE_DEFAULT)}}}}) at solve.jl:38
- solve_call at solve.jl:37 [inlined]
- #solve#441 at solve.jl:61 [inlined]
- (::DiffEqBase.var"#solve##kw")(::NamedTuple{(:tstops, :dense, :saveat, :callback),Tuple{Array{Float64,1},Bool,Array{Float32,1},DiscreteCallback{typeof(localcondition),typeof(localaffect!),typeof(DiffEqBase.INITIALIZE_DEFAULT)}}}, ::typeof(solve), ::ODEProblem{Array{Float32,1},Tuple{Float32,Float32},true,Array{Float64,1},ODEFunction{true,typeof(mydiff),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{,Tuple{}}},DiffEqBase.StandardODEProblem}) at solve.jl:45
- top-level scope at reconstruct_resilience_types.jl:89
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement