ML Report Edited
ML Report Edited
OVERVIEW:
- Input Layer: Receives user input, such as text or audio, for further
processing.
- Feature Extraction Layers: Extracts relevant features using techniques
like CNNs or text embeddings.
- Training and Integration: The model is trained with labeled datasets and
integrated into HDP for real-time interaction and assistance.
3. Evaluation Metrics:
4. Future Scope:
- The main aim of this project was to design and implement Diabetes
Prediction Using Machine Learning Methods and Performance Analysis of that
methods and it has been achieved successfully.
- With larger datasets, more correlated variables and features, and an
algorithm that is more effective than before, and looking forward to developing this
model.
Process Flow Diagram:
Figure :1
Figure : 2
CODE :
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
heart_data = pd.read_csv('/content/data.csv')
heart_data.head()
heart_data.tail()
heart_data.shape
heart_data.info()
heart_data.isnull().sum()
X = heart_data.drop(columns='target', axis=1)
Y = heart_data['target']
print(X)
print(Y)
X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size=0.2,
stratify=Y, random_state=2)
print(X.shape, X_train.shape, X_test.shape)
model = LogisticRegression()
input_data = (62,0,0,140,268,0,0,160,0,3.6,0,2,2)
prediction = model.predict(input_data_reshaped)
print(prediction)
if (prediction[0]== 0):
print('The Person does not have a Heart Disease')
else:
print('The Person has Heart Disease')
OUTPUT :
Open Google
CONCLUSION :