snazrul1/PyRevolution

create random indices

obedoduro opened this issue · 0 comments

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