Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-231
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
K.J.K.M.A Leelarathna
2022-231
Commits
8d894494
Commit
8d894494
authored
Oct 07, 2022
by
Tharushika P.R
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
dc466bb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
test.py
test.py
+14
-0
No files found.
test.py
0 → 100644
View file @
8d894494
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment