Monday, 4 March 2024

Deploy ML Model using input from user

 Hi,

Please find the code


data=[]
marks=int(input("enter your marks"))
data.append(marks)
maths=int(input("enter marks for maths"))
data.append(maths)
qa=int(input("enter marks for qa"))
data.append(qa)
pg=int(input("enter marks for programing"))
data.append(pg)
ndata=[]
ndata.append(data)
result=knn.predict(ndata)
if(result==0):
  print("not placed")
else:
  print("placed")

No comments:

Post a Comment