Adaptive semi-supervised dimensionality reduction based on pairwise constraints weighting and graph optimizing