Question: # Plot image locations (use marker='.' for better visibility) plt.scatter(train_labels[:, 1], train_labels[:, 0], marker=.) plt.title('Image Locations') plt.xlabel('Longitude') plt.ylabel('Latitude') plt.show() # Run PCA on training_feats #####
# Plot image locations (use marker='.' for better visibility) plt.scatter(train_labels[:, 1], train_labels[:, 0], marker=".") plt.title('Image Locations') plt.xlabel('Longitude') plt.ylabel('Latitude') plt.show() # Run PCA on training_feats ##### TODO(a): Your Code Here ##### transformed_feats = StandardScaler().fit_transform(train_feats) transformed_feats = PCA(n_components=2).fit_transform(transformed_feats)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
