Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VEBER Philippe
codepi
Commits
0cbda477
Commit
0cbda477
authored
May 09, 2020
by
Philippe Veber
Browse files
toolbox/Result_table: use lists to represent the set of columns
parent
ce781477
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
lib/convergence_detection.ml
lib/convergence_detection.ml
+1
-1
lib/convergence_detection.mli
lib/convergence_detection.mli
+1
-1
lib/toolbox/result_table.ml
lib/toolbox/result_table.ml
+2
-1
lib/toolbox/result_table.mli
lib/toolbox/result_table.mli
+1
-1
No files found.
lib/convergence_detection.ml
View file @
0cbda477
...
...
@@ -195,7 +195,7 @@ let%workflow recall_precision_auc_table table =
let
module
RT
=
Reviewphiltrans_toolbox
.
Result_table
in
let
{
RT
.
oracle
;
scores_per_meth
}
=
RT
.
of_file
[
%
path
table
]
in
let
labels
=
Option
.
value_exn
oracle
in
Array
.
map
scores_per_meth
~
f
:
(
fun
(
meth
,
scores
)
->
List
.
map
scores_per_meth
~
f
:
(
fun
(
meth
,
scores
)
->
let
_
,
auc
=
Biocaml_unix
.
Bin_pred
.
recall_precision_curve
~
labels
~
scores
in
meth
,
auc
)
...
...
lib/convergence_detection.mli
View file @
0cbda477
...
...
@@ -76,4 +76,4 @@ val oracle :
val
recall_precision_auc_table
:
text
file
->
(
string
*
float
)
array
workflow
(
string
*
float
)
list
workflow
lib/toolbox/result_table.ml
View file @
0cbda477
...
...
@@ -2,7 +2,7 @@ open Core_kernel
type
t
=
{
oracle
:
bool
array
option
;
scores_per_meth
:
(
string
*
float
array
)
array
;
scores_per_meth
:
(
string
*
float
array
)
list
;
}
let
of_file
fn
=
...
...
@@ -35,5 +35,6 @@ let of_file fn =
Array
.
filter_map
methods
~
f
:
(
fun
m
->
Option
.
map
(
scores
m
)
~
f
:
(
fun
c
->
m
,
c
)
)
|>
Array
.
to_list
in
{
oracle
;
scores_per_meth
}
lib/toolbox/result_table.mli
View file @
0cbda477
...
...
@@ -2,7 +2,7 @@
type
t
=
{
oracle
:
bool
array
option
;
scores_per_meth
:
(
string
*
float
array
)
array
;
scores_per_meth
:
(
string
*
float
array
)
list
;
}
val
of_file
:
string
->
t
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