<jupyter_start><jupyter_text>Plotting the Graph<jupyter_code>plt.scatter(X_train, y_train)
plt.plot(X_train, regressor.predict(X_train), color='red')
plt.title('Training graph for Housing Data')
plt.xlabel('Living Space')
plt.ylabel('Price')
plt.scatter(X_test, y_test)
plt.plot(X_train, regressor.predict(X_train), color='red')
plt.title('Testing graph for Housing Data')
plt.xlabel('Space')
plt.ylabel('Price')<jupyter_output><empty_output><jupyter_text>Calcualting the Accuracy of the model.<jupyter_code>accuracy = regressor.score(X_test,y_test)
print(accuracy*100,'%')<jupyter_output>48.827544481239855 %
{'fraction_non_alphanumeric': 0.14942528735632185, 'fraction_numerical': 0.03284072249589491, 'mean_word_length': 10.96078431372549, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '569949', 'license': 'MIT', 'n_tokens_mistral': 265, 'n_tokens_neox': 234, 'n_words': 34, 'path': 'Code/ML_Applications/Statistical_Models/Sheltering.ipynb', 'repo_name': 'Vedant-S/CoViD-PDS-Plus', 'size': '609'}