Dimension-reduction based logistic regression algorithm used to predict cancer types.