Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Analysis of Chatbot and Produce a Predictable reason and feedback code
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
2022-298
Analysis of Chatbot and Produce a Predictable reason and feedback code
Commits
4855344e
Commit
4855344e
authored
Oct 08, 2022
by
Karagoda Gamage Pasan Malaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing
parent
103607f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
test.py
test.py
+11
-0
No files found.
test.py
0 → 100644
View file @
4855344e
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
))
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