<jupyter_start><jupyter_text>Stochastic Gradient Descent Machine Learning Model<jupyter_code>import os
import pandas as pd
df = pd.read_csv(os.path.join('..', '..', 'data', 'rookies_stats.csv'))
df.head()
X_train, X_val, y_train, y_val = train_test_split(df_prepped.drop('lasts', axis=1), df_prepped['lasts'], test_size=.4, random_state=56)
X_val, X_test, y_val, y_test = train_test_split(X_val, y_val, test_size=.5, random_state=92)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15550755939524838, 'fraction_numerical': 0.01511879049676026, 'mean_word_length': 8.46938775510204, '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': '381961', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 196, 'n_tokens_neox': 188, 'n_words': 33, 'path': 'nba_rookies/ml_algorithms/sgd_model.ipynb', 'repo_name': 'carneycj/NBA_Rookies', 'size': '463'}