The Role of Learning Algorithms in Collective Action