Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Imène Lajili
context-aware
Commits
1df4e717
Commit
1df4e717
authored
Feb 10, 2016
by
Alain Shakour
Browse files
Binary thres. fix
parent
fd1f24ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
context-aware/library.py
View file @
1df4e717
...
...
@@ -5,7 +5,7 @@ def ca_set_binary_threshold_from_skew(input_dict):
cost_false_neg
=
input_dict
[
'cost_false_neg'
]
ratio_pos_neg
=
input_dict
[
'ratio_pos_neg'
]
output_dict
=
{}
output_dict
[
'bin_thres'
]
=
float
(
ratio_pos_neg
)
*
(
float
(
cost_false_
pos
)
/
float
(
cost_false_
neg
))
output_dict
[
'bin_thres'
]
=
float
(
ratio_pos_neg
)
*
(
float
(
cost_false_
neg
)
/
float
(
cost_false_
pos
))
return
output_dict
def
ca_estimate_pos_neg_from_prd_fct
(
input_dict
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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