
It all plays into it. The number of likes/comments/views/retention and relevance of tag words used will all play a part. Exactly how much each is weighted I have no idea.
I don't see retention beating out views unless the views have a very very low rentention rate.. if that makes sense.