<jupyter_start><jupyter_text>Batch Prediction<jupyter_code>data = pd.read_csv("pima_indian_diabetes.csv")
data = data.sample(50)
pred_prob = model.predict_proba(data[features])
THRESHOLD = 0.65
predictions = np.where(pred_prob[:, 1] > THRESHOLD, 1, 0)
str(round(accuracy_score(data.Diabetes, predictions) *100,2))+"%"<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15561959654178675, 'fraction_numerical': 0.0345821325648415, 'mean_word_length': 10.225806451612904, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '420067', 'license': 'MIT', 'n_tokens_mistral': 151, 'n_tokens_neox': 140, 'n_words': 18, 'path': 'MachineLearning/Classification/Diabetes_Prediction.ipynb', 'repo_name': 'santho3110/Data-Science', 'size': '347'}