Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
bom_identify
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
ed3f93c2
authored
Jun 10, 2020
by
lichenggang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加注释
parent
b7f946c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
predict/base_handler.py
predict/dict_predict.py
predict/base_handler.py
View file @
ed3f93c2
...
...
@@ -8,10 +8,16 @@ from utils.robots import dd_send_msg
import
pandas
as
pd
from
static_config
import
*
# 数量列阈值
RIGHT_LEVEL
=
0.7
# 序号列阈值
SEQ_LEVEL
=
0.5
# 类别列阈值
CATE_LEVEL
=
0.5
#
MULTI_SAME_LEVEL
=
3
# 位号列阈值
REF_LEVEL
=
0.5
class
BasePredictor
:
...
...
predict/dict_predict.py
View file @
ed3f93c2
...
...
@@ -206,12 +206,12 @@ class DicPredict(BasePredictor):
head_std_result
=
head_id_res
.
get
(
'std_result'
)
model_std_result
=
model_id_res
.
get
(
'std_result'
)
comprehensive_res
=
BasePredictor
.
get_comprehensive_res
(
head_std_result
,
model_std_result
)
self
.
info
.
info
(
'综合预测结果: '
+
str
(
comprehensive_res
))
if
comprehensive_res
:
res
=
{
'std_result'
:
comprehensive_res
,
'ab_result'
:
head_id_res
[
'ab_result'
]
or
model_id_res
[
'ab_result'
]
or
{},
}
self
.
info
.
info
(
'综合预测结果: '
+
str
(
comprehensive_res
))
return
res
elif
predict_type
==
'model'
:
...
...
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