<jupyter_start><jupyter_text>Normal Equation$\theta = (X^TX)^{-1}X^Ty$<jupyter_code>XT = tf.transpose(X)
theta = tf.matmul(tf.matmul(tf.matrix_inverse(tf.matmul(XT, X)), XT), y)
with tf.Session() as sess:
    tehta_value = theta.eval()
tehta_value<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18050541516245489, 'fraction_numerical': 0.0036101083032490976, 'mean_word_length': 7.424242424242424, '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': '228811', 'license': 'MIT', 'n_tokens_mistral': 125, 'n_tokens_neox': 118, 'n_words': 16, 'path': 'tensorflow/104_linear_regression.ipynb', 'repo_name': 'shawlu95/Data_Science_Toolbox', 'size': '277'}