Generalized Persistence for Equivariant Operators in Machine Learning