Developer.
dataset. Therefore, we will go forward with the first 10 principal components as our new features. # Instantiate PCA with 10 principal components & fit to our dataset pca = PCA(n_components=10, random_state=99).fit(X_scaled) # Transform our dataset X_scaled_red = pca.transform(X_scaled) It’s