Skip to content

create random indices #11

Description

@obedoduro

sample_index=random.sample(range(len(x)),len(x)/5) #20-80

#get error that cant multiply sequence by non-int of type 'float

Answer

sample_index=random.sample(range(len(x)),int(len(x)/5)) #20-80

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions