<jupyter_start><jupyter_text>This shows that cholestrol is not a major indication of heart disease .<jupyter_code>sns.scatterplot(data=data,x="BP",y="Heart Disease")
sns.scatterplot(data=data,x="Chest pain type",y="Heart Disease")

X=data.drop('Heart Disease',axis=1)
encoded_data=pd.get_dummies(data,columns=['Heart Disease'])
encoded_data.head()

Y=encoded_data['Heart Disease_Presence']<jupyter_output><empty_output><jupyter_text>***label encoding needs to be performed to remove the string type categorical feature*********<jupyter_code>X.head()
from sklearn.model_selection import train_test_split
xtrain,xtest,ytrain,ytest=train_test_split(X,Y,test_size=0.1,random_state=3)
from sklearn.linear_model import LogisticRegression 
lor=LogisticRegression(solver='liblinear')
xtrain
ytrain
lor.fit(xtrain,ytrain)
ypred=lor.predict(xtest)
lor.score(xtest,ytest)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1303370786516854, 'fraction_numerical': 0.0044943820224719105, 'mean_word_length': 12.102941176470589, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '385195', 'license': 'MIT', 'n_tokens_mistral': 329, 'n_tokens_neox': 315, 'n_words': 52, 'path': 'heart-disease-predictiom.ipynb', 'repo_name': 'kasyap1234/machine-learning-', 'size': '890'}