Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Jaime Collado
/
api_birads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
497470cd
authored
Mar 01, 2023
by
Jaime Collado
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Bugfix
parent
c82b3634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app.py
app.py
View file @
497470cd
...
@@ -42,7 +42,7 @@ def _predict(text, model, vectorizer):
...
@@ -42,7 +42,7 @@ def _predict(text, model, vectorizer):
X_test
=
vectorizer
.
transform
([
clean_text
])
X_test
=
vectorizer
.
transform
([
clean_text
])
# Predict outputs
# Predict outputs
labels
=
[
f
"
P
R{i}"
for
i
in
range
(
7
)]
labels
=
[
f
"
B
R{i}"
for
i
in
range
(
7
)]
probs
=
model
.
predict_proba
(
X_test
)
probs
=
model
.
predict_proba
(
X_test
)
probs
=
[
prob
[
0
][
1
]
for
prob
in
probs
]
probs
=
[
prob
[
0
][
1
]
for
prob
in
probs
]
probs
=
[
probs
=
[
...
...
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