<jupyter_start><jupyter_text>Plot of reduced data along with original data<jupyter_code>X_new = pca.inverse_transform(X_pca)
plt.scatter(X[:, 0], X[:, 1], alpha=0.4 , marker = 'x' , label = 'Original data')
plt.scatter(X_new[:, 0], X_new[:, 1], alpha=0.5 , marker = 'o',  label = 'Reduced data')
plt.axis('equal');
plt.title('Plot of reduced data(after PCA) along with original data')

plt.legend(loc='upper right', numpoints=1, ncol=2, fontsize=8, bbox_to_anchor=(0, 0))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17964071856287425, 'fraction_numerical': 0.02594810379241517, 'mean_word_length': 6.84375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '164759', 'license': 'MIT', 'n_tokens_mistral': 208, 'n_tokens_neox': 194, 'n_words': 46, 'path': 'Homework9_10/HW_10.1.ipynb', 'repo_name': 'gems047/Uploads_2018', 'size': '501'}