Advertisement
andreyvedis

Errors

Jun 22nd, 2020
2,725
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 25.11 KB | None | 0 0
  1. Probematic functions:
  2.  
  3.  
  4. ########################################################################
  5. # Inside "helper_functions.jl"
  6. ######################################################################
  7.  
  8.  
  9. function split_train_test(m, ratio::Number = .2, seed::Int64 = 1234; skip_vars::Int = 0)
  10.     if(typeof(m) == DataFrame)
  11.         m_tmp = df_m(m[:, (skip_vars + 1):end])
  12.     else
  13.         m_tmp = m[:, (skip_vars + 1):end]
  14.     end
  15.     Random.seed!(seed)
  16.     test_indicator = rand(Bernoulli(ratio), size(m_tmp, 1))
  17.     train = m_tmp[test_indicator .== 0, :];
  18.     test  = m_tmp[test_indicator .== 1, :]
  19.     return train, test
  20. end
  21.  
  22.  
  23. Error:
  24.  
  25. syntax: incomplete: "function" at /Users/AndreyVedishchev/Desktop/IMBI/helper_functions.jl:242 requires end
  26. top-level scope at helper_functions.jl:242
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. function brier_action(y_mat::Array{Float64,2}, p̂_mat::Array{Float64,2}; log_it::Bool = false)
  36.     n, p = map(x->convert(Int64, x), size(y_mat))
  37.     brier_scores = zeros(n, p)
  38.  
  39.     if(log_it == false)
  40.         for n_col in 1:n
  41.             for n_row in 1:p
  42.                 brier_scores[n_col,n_row] = (p̂_mat[n_col,n_row] - y_mat[n_col,n_row])^2
  43.             end
  44.         end
  45.     end
  46.  
  47.     if(log_it == true)
  48.         for n_col in 1:n
  49.             for n_row in 1:p
  50.                 brier_scores[n_col,n_row] = (log(p̂_mat[n_col,n_row] + 1) - log(y_mat[n_col,n_row] + 1))^2
  51.             end
  52.         end
  53.     end
  54.  
  55.     person_brier   = mapslices(x->mean(x), brier_scores, dims = 2)[:,1] # sum hor and divide by p
  56.     variable_brier = mapslices(x->mean(x), brier_scores, dims = 1)[1,:] # sum vertical and divide by n
  57.     quick_summary = Dict("pPer" => person_brier, "pVar" => variable_brier)
  58.     median_var = mean(quick_summary["pVar"])
  59.     return median_var, quick_summary, brier_scores
  60. end
  61.  
  62.  
  63. Error:
  64.  
  65. syntax: incomplete: "function" at /Users/AndreyVedishchev/Desktop/IMBI/helper_functions.jl:417 requires end
  66. top-level scope at helper_functions.jl:417
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. ########################################################################
  75. # Inside "reconstruct_resilience_types.jl"
  76. ######################################################################
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88. for i=1:n # @Andrey: this is the ugly loop I mentioned
  89.  
  90.     # i = findfirst(x -> x==0, rtype) # resilient, debugging
  91.     # i = findfirst(x -> x==1, rtype) # not resilient, debugging
  92.  
  93.     # idea:  rand(Bernoulli(0.2), max_obs) # external kicks to the smooth stress level?
  94.  
  95.     curp = rtype[i] == 1 ? p1 : p0
  96.     prob = ODEProblem(mydiff,u0,(0f0, Float32(nt)),curp)
  97.     evalt = Float32.(sort([0.0,rand(sampling_freq-1)*nt...]))
  98.     res = solve(prob,tstops=tstops,dense=false,saveat=evalt,callback=cb)
  99.     picku = res.u[map(arg -> arg in evalt,res.t)]
  100.     z1 = Float32.(map(arg -> arg[1],picku) .+ rand(size(picku,1)) .* 0.05)
  101.     z2 = Float32.(map(arg -> arg[2],picku) .+ rand(size(picku,1)) .* 0.05)
  102.  
  103.     ztotal1[((i-1)*sampling_freq+1):(i*sampling_freq)] .= z1
  104.     ztotal2[((i-1)*sampling_freq+1):(i*sampling_freq)] .= z2
  105.  
  106.     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
  107.     xmat2 = round.(exp.(randn(sampling_freq, nx2) .* 0.25 .+ z2.*0.9));  # be careful that it is on a reasonable scale
  108.     xmat1 = map(x -> ifelse(x>4.0,4.0,x), xmat1) # make sure values stay in the right range
  109.     xmat2 = map(x -> ifelse(x>7,7.0,x), xmat2)
  110.     # heatmap(xmat1,clims=(1.0,4.0))
  111.     # heatmap(xmat1)
  112.     # heatmap(xmat2)
  113.  
  114.     xtotal1[((i-1)*sampling_freq+1):(i*sampling_freq),:] .= xmat1;
  115.     xtotal2[((i-1)*sampling_freq+1):(i*sampling_freq),:] .= xmat2;
  116.  
  117.     push!(idat,((Float32.(xmat1'),fill(1.0f0,sampling_freq),Float32.(xmat2'),fill(1.0f0,sampling_freq),evalt,Float32.(collect(0:(sampling_freq-1)))),))
  118.  
  119.     if i == 1
  120.         global case1 = [
  121.             (Float32.(xmat1'), # X_ghq
  122.            fill(1.0f0,sampling_freq),      # w_ghq
  123.            Float32.(xmat2'), # X_dh
  124.             fill(1.0f0,sampling_freq),      # w_DH
  125.             evalt,      # t
  126.             Float32.(collect(0:(sampling_freq-1))),      # obs
  127.             )
  128.             ]
  129.     elseif i == 2
  130.         global case2 = [
  131.             (Float32.(xmat1'), # X_ghq
  132.            fill(1.0f0,sampling_freq),      # w_ghq
  133.            Float32.(xmat2'), # X_dh
  134.             fill(1.0f0,sampling_freq),      # w_DH
  135.             evalt,      # t
  136.             Float32.(collect(0:(sampling_freq-1))),      # obs
  137.             )
  138.             ]
  139.         global idat2 = [case1, case2]
  140.     else
  141.     push!(idat2, [
  142.         (Float32.(xmat1'), # X_ghq
  143.        fill(1.0f0,sampling_freq),      # w_ghq
  144.        Float32.(xmat2'), # X_dh
  145.         fill(1.0f0,sampling_freq),      # w_DH
  146.         evalt,      # t
  147.         Float32.(collect(0:(sampling_freq-1))),      # obs
  148.         )
  149.         ]);
  150.     end
  151. end
  152.  
  153.  
  154. Error:
  155.  
  156. LoadError: UndefVarError: localstops not defined
  157. in expression starting at /Users/AndreyVedishchev/Desktop/IMBI/reconstruct_resilience_types.jl:79
  158. 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
  159. apply_discrete_callback! at callbacks.jl:710 [inlined]
  160. 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
  161. _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
  162. loopfooter! at integrator_utils.jl:166 [inlined]
  163. 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
  164. __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
  165. (::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
  166. __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
  167. __solve at default_solve.jl:11 [inlined]
  168. #__solve#1 at default_solve.jl:5 [inlined]
  169. __solve at default_solve.jl:2 [inlined]
  170. 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
  171. solve_call at solve.jl:37 [inlined]
  172. #solve#441 at solve.jl:61 [inlined]
  173. (::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
  174. top-level scope at reconstruct_resilience_types.jl:89
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement