<jupyter_start><jupyter_text>Machine Learning Basic: Why Python?<jupyter_code>import warnings
warnings.filterwarnings("ignore", category=FutureWarning)

from sklearn.datasets import load_iris
from sklearn.linear_model import LogisticRegression
iris = load_iris()
iris
model = LogisticRegression().fit(iris['data'], iris['target'])
model
model.predict(iris['data'])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.116751269035533, 'fraction_numerical': 0.0, 'mean_word_length': 11.34375, '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': '406503', 'license': 'MIT', 'n_tokens_mistral': 130, 'n_tokens_neox': 129, 'n_words': 24, 'path': 'ml_foundations/01_Review/01_03/End/01_03.ipynb', 'repo_name': 'joejoeyjoseph/playground', 'size': '394'}