<jupyter_start><jupyter_text>Training<jupyter_code>model.fit(X,Y)<jupyter_output><empty_output><jupyter_text>Predictions<jupyter_code>output = model.predict(X)
# Parameters Learnedm
bias = model.intercept_
coeff = model.coef_

print(bias)
print(coeff)<jupyter_output>1.7169492241159654
[ 0.7605872  -0.68708745]<jupyter_text>Score<jupyter_code>model.score(X,Y)
## Visualise

plt.scatter(X[:,0],Y,label='data')
plt.scatter(X[:,0],output,color='orange',label='prediction')
plt.legend()
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16603053435114504, 'fraction_numerical': 0.06870229007633588, 'mean_word_length': 12.461538461538462, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '238778', 'license': 'MIT', 'n_tokens_mistral': 251, 'n_tokens_neox': 225, 'n_words': 17, 'path': '9. Linear Regression/Linear Regression (Extra Topic)/SkLearn Regression- Polynomial Features.ipynb', 'repo_name': 'sgeek28/Data-Science', 'size': '524'}