Implement Gaussian Random Projection, a fast dimensionality reduction technique that approximately preserves pairwise distances when projecting high-dimensional data into a lower-dimensional space.
Given a data matrix X of shape (n_samples, n_features), a target dimensionality n_components, and a random seed, project the data into a lower-dimensional space using a random projection matrix whose entries are drawn from a zero-mean Gaussian distribution. The projection matrix should be scaled appropriately so that, in expectation, pairwise Euclidean distances are preserved.
Requirements:
numpy.random.RandomState(seed) to generate the random projection matrix (so results are reproducible).(n_features, n_components) using standard_normal, and apply the appropriate scaling so that the expected squared norm of a projected vector equals the squared norm of the original vector.(n_samples, n_components) as a NumPy array.Do not round inside the solution.