<jupyter_start><jupyter_text>Import modules<jupyter_code>from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"

from sklearn import svm
from sklearn import datasets<jupyter_output><empty_output><jupyter_text>Dataset<jupyter_code>iris = datasets.load_iris()<jupyter_output><empty_output><jupyter_text>Classification<jupyter_code>model = svm.SVC() 
model.fit(iris.data, iris.target)
model.predict([[4.9,  3.4,  1.5,  0.2]])<jupyter_output><empty_output><jupyter_text>Regression<jupyter_code>model = svm.SVR()
model.fit(iris.data, iris.target) 
model.predict([[4.9,  3.4,  1.5,  0.2]])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13834586466165413, 'fraction_numerical': 0.02406015037593985, 'mean_word_length': 9.246153846153845, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '389197', 'license': 'MIT', 'n_tokens_mistral': 276, 'n_tokens_neox': 277, 'n_words': 30, 'path': 'Code/Section 3/Building models using Support Vector Machines.ipynb', 'repo_name': 'PacktPublishing/Pandas-for-Predictive-Analysis-using-scikit-learn-', 'size': '665'}