Skip to content

Index 1 is out of bounds for axis 1 with size 1. #1

Description

@iamtekson

I tried to run the aggregate_boot() function but got following error,

---> 25 mi_m, mi_lb, mi_ub = aggregate_boot(mi) # shape (M,)
     26 sigma_m, sigma_lb, sigma_ub = aggregate_boot(sigma) # shape (M,)
     27 

/opt/conda/lib/python3.9/site-packages/safepython/util.py in aggregate_boot(S, alfa)
    328 
    329         S_m[j, :] = np.nanmean(S[j], axis=0) # bootstrap mean
--> 330         idx = ~np.isnan(S[j][:, 1])
    331         if np.sum(idx) < Nboot:
    332             warn('Statistics were computed using ' + '%d' % (np.sum(idx))+

IndexError: index 1 is out of bounds for axis 1 with size 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions