Theoretical and Experimental Analyses of Tensor-Based Regression and Classification