<jupyter_start><jupyter_text>Also f1 score for k=3 is maximum<jupyter_code>plt.figure(figsize=(10,6))
plt.plot(range(1,n_neigh_max+1),error_rate,ls='dashed',marker='o',markerfacecolor='red')
plt.xlabel('K')
plt.ylabel('Error Rate')
plt.title('Error Rate vs K')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18275862068965518, 'fraction_numerical': 0.02413793103448276, 'mean_word_length': 13.55, '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': '291941', 'license': 'MIT', 'n_tokens_mistral': 128, 'n_tokens_neox': 119, 'n_words': 15, 'path': 'KNN/KNN.ipynb', 'repo_name': 'maheshjindal/supervised_ml_projects', 'size': '290'}