<jupyter_start><jupyter_text>Testing<jupyter_code>from sklearn.datasets import load_boston
boston = load_boston()
data = boston.data
target = boston.target
lr = LinearRegression(fit_intercept=True)
lr.fit(data, target)
lr.coef_
lr.intercept_
lr.metrics.mean_squared_error(target, lr.predict(data))
from sklearn.linear_model import LinearRegression
lrsk = LinearRegression(fit_intercept=True)
lrsk.fit(data, target)
lrsk.coef_
lrsk.intercept_
from sklearn.metrics import mean_squared_error, mean_absolute_error
mean_squared_error(target, lrsk.predict(data))
mean_absolute_error(target, lrsk.predict(data))
np.sqrt(mean_squared_error(target, lrsk.predict(data)))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10144927536231885, 'fraction_numerical': 0.0, 'mean_word_length': 10.14516129032258, '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': '33745', 'license': 'MIT', 'n_tokens_mistral': 261, 'n_tokens_neox': 253, 'n_words': 39, 'path': 'notebooks/Supervised_Learning.ipynb', 'repo_name': 'ashishpatel26/ML_From_Scratch', 'size': '690'}