Hi, so I have a function in my code to calculate the ROC AUC following an experiment, this has worked fine for me and continues to work fine locally but on our cluster I get the following error:
ERROR: LoadError: On worker 2:
BoundsError: attempt to access 1-element Array{Int64,1} at index [2]
getindex at ./array.jl:788 [inlined]
AUC at /home/dcs/csrxgb/.julia/packages/MLJBase/O5b6j/src/measures/finite.jl:409
roc_auc at /gpfs/home/dcs/csrxgb/julia_stuff/src/logistic_regression/evaluation.jl:28
#evalu#43 at /gpfs/home/dcs/csrxgb/julia_stuff/src/logistic_regression/evaluation.jl:6
evalu at /gpfs/home/dcs/csrxgb/julia_stuff/src/logistic_regression/evaluation.jl:2
#93 at /gpfs/home/dcs/csrxgb/julia_stuff/src/logistic_regression/run.jl:231
#49 at /home/dcs/csrxgb/.julia/packages/ProgressMeter/g1lse/src/ProgressMeter.jl:795
#104 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Distributed/src/process_messages.jl:294
run_work_thunk at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Distributed/src/process_messages.jl:79
macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Distributed/src/process_messages.jl:294 [inlined]
#103 at ./task.jl:358
Stacktrace:
[1] (::Base.var"#726#728")(::Task) at ./asyncmap.jl:178
[2] foreach(::Base.var"#726#728", ::Array{Any,1}) at ./abstractarray.jl:1919
[3] maptwice(::Function, ::Channel{Any}, ::Array{Any,1}, ::UnitRange{Int64}) at ./asyncmap.jl:178
[4] wrap_n_exec_twice(::Channel{Any}, ::Array{Any,1}, ::Distributed.var"#204#207"{WorkerPool}, ::Function, ::UnitRange{Int64}) at ./asyncmap.jl:154
[5] async_usemap(::Distributed.var"#188#190"{Distributed.var"#188#189#191"{WorkerPool,ProgressMeter.var"#49#52"{var"#93#95"{String,String,Int64,Bool,String,String,Int64,Float64,Float64,Float64,Float64,Float64,Array{Tuple{Float64,Float64},1},Int64,Bool,Int64},RemoteChannel{Channel{Bool}}}}}, ::UnitRange{Int64}; ntasks::Function, batch_size::Nothing) at ./asyncmap.jl:103
[6] #asyncmap#710 at ./asyncmap.jl:81 [inlined]
[7] pmap(::Function, ::WorkerPool, ::UnitRange{Int64}; distributed::Bool, batch_size::Int64, on_error::Nothing, retry_delays::Array{Any,1}, retry_check::Nothing) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Distributed/src/pmap.jl:126
[8] pmap(::Function, ::WorkerPool, ::UnitRange{Int64}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Distributed/src/pmap.jl:101
[9] pmap(::Function, ::UnitRange{Int64}; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Distributed/src/pmap.jl:156
[10] pmap(::Function, ::UnitRange{Int64}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Distributed/src/pmap.jl:156
[11] macro expansion at /home/dcs/csrxgb/.julia/packages/ProgressMeter/g1lse/src/ProgressMeter.jl:794 [inlined]
[12] macro expansion at ./task.jl:334 [inlined]
[13] macro expansion at /home/dcs/csrxgb/.julia/packages/ProgressMeter/g1lse/src/ProgressMeter.jl:793 [inlined]
[14] macro expansion at ./task.jl:334 [inlined]
[15] progress_map(::Function, ::Vararg{Any,N} where N; mapfun::Function, progress::Progress, channel_bufflen::Int64, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/dcs/csrxgb/.julia/packages/ProgressMeter/g1lse/src/ProgressMeter.jl:786
[16] #progress_pmap#53 at /home/dcs/csrxgb/.julia/packages/ProgressMeter/g1lse/src/ProgressMeter.jl:811 [inlined]
[17] main() at /gpfs/home/dcs/csrxgb/julia_stuff/src/logistic_regression/run.jl:116
[18] top-level scope at /gpfs/home/dcs/csrxgb/julia_stuff/src/logistic_regression/run.jl:389
[19] include(::Module, ::String) at ./Base.jl:377
[20] exec_options(::Base.JLOptions) at ./client.jl:288
[21] _start() at ./client.jl:484
in expression starting at /gpfs/home/dcs/csrxgb/julia_stuff/src/logistic_regression/run.jl:389
Any idea as to what might be the cause of this?