Last active
February 19, 2021 18:27
-
-
Save Divyosmi/55f7dfd8c6353a028a435ec55b76b316 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tensorflow import keras | |
model = keras.model.load_model("./model.h5") | |
age = int(input("age: input age(only numbers) ")) | |
sex = int(input("sex: input 1 for female and 0 for male(only numbers ")) | |
cp = int(input("cp: input 0 for Asymptomatic, 1 for Atypical Angina, 2 for Nonanginal Pain, 3 for Typical Angina(only numbers) ")) | |
trestbps = int(input("trestbps: input trestbps(only numbers) ")) | |
chol = int(input("chol: input cholesterol(only numbers) ")) | |
fbs= int(input("fbs: input 1 for True and 0 for False(only numbers ")) | |
restecg=int(input("restecg: input 0 for Having ST-T wave abnormal, 1 for Hypertrophy, 2 for Normal(only numbers) ")) | |
thalach = int(input("thalach: input thalach(only numbers) ")) | |
exang = int(input("exang: input 1 for yes and 0 for No(only numbers ")) | |
oldpeak = float(input("oldpeak: input the value for oldpeak")) | |
slope = int(input("slope: input 0 for Downsloping, 1 for Flat, 2 for Unisloping(only numbers) ")) | |
ca = int(input("caa: input ca or coronary artery or size of coronary artery(only numbers) ")) | |
thal = int(input("thal: input 0 for Fixed, 1 for Normal, 2 for Reversible defect(only numbers) ")) | |
predlist = [[age,sex,cp,trestbps, chol,fbs,restecg,thalach,exang,oldpeak,slope,ca,thal]] | |
model.predict(predict) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment