Commit 8d894494 authored by Tharushika P.R's avatar Tharushika P.R

Upload New File

parent dc466bb3
from pycaret.classification import *
model = load_model('lr')
Headline = "some headline"
Article = "some article"
data = np.array(
[['Headline', 'Article'], [Headline, Article]])
result = \
predict_model(model, data=pd.DataFrame(data=data[0:, 0:], index=data[0:, 0], columns=data[0, 0:])).iat[
1, 2]
print(str(result))
\ No newline at end of file
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