Some help with understanding planet competition

I have watched till chapter 3. So I did follow everything from the notebook and the video.

I got the final probability matrix after training using learn.predict(isTest = True)

First qn, Are these probabilities in the same order as data.test_ds.fnames ?

Second, How do we get the final labels… like do we need to use some threshold (select the label if probability >0.5 ) ?

Anyone here?