Score Function Features for Discriminative Learning: Matrix and Tensor Framework