churchlab / UniRep

UniRep model, usage, and examples.
338 stars 96 forks source link

maintaining the association between value and sequence #27

Open norakearns opened 2 years ago

norakearns commented 2 years ago

Hi, I have a question about shuffling the sequences while maintaining the association between value and sequence - in the UniRep jupyter notebook tutorial you mention "You can get around this by just prepending every integer sequence with the sequence label (eg, every sequence would be saved to the file as "{brightness value}, 24, 1, 5,..." and then you could just index out the first column after calling the bucket_op." I am not sure how to implement this and was wondering if you might provide some guidance? Thank you!