This is test.py file

parent 970252a0
from pycaret.classification import *
meal_plan_nb = load_model('gbc')
question = 2
answer = "heavy"
data = np.array([['question no', 'answer'], [question, answer]])
result = predict_model(meal_plan_nb, data=pd.DataFrame(data=data[0:, 0:], index=data[0:, 0], columns=data[0, 0:])).iat[1, 2]
print('Predicted result ' + str(result))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment