<jupyter_start><jupyter_text>How Classification works Remember the goal here is to classify Food reviews based on customers' text.<jupyter_code>Image("classification.png")
YouTubeVideo(id="UpE0CxkjDKw", width=900, height=450)<jupyter_output><empty_output><jupyter_text>Data Matrix Notation $$D_n = \{ (x_i,y_i)_{i=0}^{n} | x \in R^d, y \in \{0,1\}\}$$$D_n$: total dataset  $d$: d dimensions  $x_i$: text review column vector  $y_i$: classes 0: negative review, 1: positive review<jupyter_code>YouTubeVideo(id="uiL1Nk_hBBM", width=900, height=450)<jupyter_output><empty_output><jupyter_text>Classification vs RegressionFundamentally, classification is about predicting a label and regression is about predicting a quantity.  - Classification predictions can be evaluated using accuracy, whereas regression predictions cannot.  - Regression predictions can be evaluated using root mean squared error, whereas classification predictions cannot.<jupyter_code>YouTubeVideo(id="FXbF_I3D9q4", width=900, height=450)
%%html
<script src="https://cdn.rawgit.com/parente/4c3e6936d0d7a46fd071/raw/65b816fb9bdd3c28b4ddf3af602bfd6015486383/code_toggle.js"></script><jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1117696867061812, 'fraction_numerical': 0.0550381033022862, 'mean_word_length': 8.234375, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 1, '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': '408781', 'license': 'MIT', 'n_tokens_mistral': 436, 'n_tokens_neox': 387, 'n_words': 95, 'path': 'Lecture 49 Classification.ipynb', 'repo_name': 'dajebbar/AI-Programming-with-python', 'size': '1181'}