OER·harvester

← Back to the library
Zenodo PDF resource

Artificial intelligence (AI) with It's Applications

The book "Artificial Intelligence (AI) with It's Applications" provides a comprehensive insight into the field of AI, exploring its fundamental principles, modern applications, and future potential. It serves as a valuable resource for students, researchers, and professionals looking to understand AI’s role in shaping industries and everyday life. The book begins with an introduction to Artificial Intelligence , cov…

Licence
OPEN CC-BY-4.0
Authors
Dr. Dipikaben Umakant Thakar, Mrs. PL. Natchiammai, Dr. R. J. Kavitha…
Published
2025-03-18 · Zenodo
Language
eng
Length
66700 words
Type
narrative text
Open ↗ Download Open original ↗

counting no. of patients affected with CHD

plt.figure(figsize=(7, 5))

sns.countplot(x='TenYearCHD', data=disease_df,

palette="BuGn_r")

plt.show()

Output

Counting number of patients affected by CHD where (0= Not Affected; 1= Affected)

laste = disease_df['TenYearCHD'].plot()

plt.show(laste)

Output

Fitting Logistic Regression Model for Heart Disease Prediction

from sklearn.linear_model import LogisticRegression

logreg = LogisticRegression()

logreg.fit(X_train, y_train)

y_pred = logreg.predict(X_test)

Evaluating Logistic Regression Model