<jupyter_start><jupyter_text>classification matrics<jupyter_code>from sklearn.metrics import accuracy_score,confusion_matrix,classification_report
confusion_matrix(y_test,y_pred)
from sklearn.metrics import plot_confusion_matrix
plot_confusion_matrix(log_model,scaled_x_test,y_test)
print(classification_report(y_test,y_pred))
from sklearn.metrics import precision_score,recall_score
precision_score(y_test,y_pred)
recall_score(y_test,y_pred)<jupyter_output><empty_output><jupyter_text>ROC curve<jupyter_code>from sklearn.metrics import plot_roc_curve,plot_precision_recall_curve
plot_roc_curve(log_model,scaled_x_test,y_test)
plot_precision_recall_curve(log_model,scaled_x_test,y_test)<jupyter_output>c:\Users\HP\Anaconda3\envs\ml_Test\lib\site-packages\sklearn\utils\deprecation.py:87: FutureWarning: Function plot_precision_recall_curve is deprecated; Function `plot_precision_recall_curve` is deprecated in 1.0 and will be removed in 1.2. Use one of the class methods: PrecisionRecallDisplay.from_predictions or PrecisionRecallDisplay.from_estimator.
  warnings.warn(msg, category=FutureWarning)
{'fraction_non_alphanumeric': 0.07370336669699727, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 13.285714285714286, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '459924', 'license': 'Apache-2.0', 'n_tokens_mistral': 397, 'n_tokens_neox': 374, 'n_words': 52, 'path': 'Logistic Regression/simpleLogistic.ipynb', 'repo_name': 'Prikshit7766/ml-class', 'size': '1099'}