<jupyter_start><jupyter_text>📍 Importing Libraries<jupyter_code>import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression  
import reg2info as r2i<jupyter_output><empty_output><jupyter_text>📍 Loading dataset<jupyter_code>df = pd.read_csv("Salary_Data.csv")
df.head()<jupyter_output><empty_output><jupyter_text>📍 Splitting in to train and test set<jupyter_code>x= df.iloc[:, :-1].values  
y= df.iloc[:, 1].values 
x_train, x_test, y_train, y_test= train_test_split(x, y, test_size= 1/3, random_state=0)<jupyter_output><empty_output><jupyter_text>📍 Train your linear regression model<jupyter_code>lr= LinearRegression().fit(x_train, y_train)<jupyter_output><empty_output><jupyter_text>📍Getting the equation of lr<jupyter_code>eq = r2i.reg_equation(lr)
eq<jupyter_output><empty_output><jupyter_text>📍 Plotting the lr line and training data<jupyter_code>plot = r2i.reg_plot(lr, x, y)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11601642710472279, 'fraction_numerical': 0.009240246406570842, 'mean_word_length': 10.079545454545455, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '511027', 'license': 'MIT', 'n_tokens_mistral': 410, 'n_tokens_neox': 392, 'n_words': 66, 'path': 'example/notebook_example.ipynb', 'repo_name': 'mohamedabidi97/reg-2-info', 'size': '974'}